src/OrchardCore/OrchardCore.ContentManagement/FileContentDefinitionStore.cs
/// <summary>
/// Loads a single document (or create a new one) for updating and that should not be cached.
/// </summary>
Loads a single document (or create a new one) for updating and that should not be cached.
Loads a single document ( or create a new one ) for updating and that should not be cached .
public async Task<ContentDefinitionRecord> LoadContentDefinitionAsync()
        {
            var scopedCache = ShellScope.Services.GetRequiredService<FileContentDefinitionScopedCache>();
            if (scopedCache.ContentDefinitionRecord != null)
            {
                return scopedCache.ContentDefinitionRecord;
            }
            (_, var result) = await GetContentDefinitionAsync();
            return scopedCache.ContentDefinitionRecord = result;
        }
public async Task < ContentDefinitionRecord > LoadContentDefinitionAsync ( ) { var scopedCache = ShellScope . Services . GetRequiredService < FileContentDefinitionScopedCache > ( ) ; if ( scopedCache . ContentDefinitionRecord != null ) { return scopedCache . ContentDefinitionRecord ; } ( _ , var result ) = await GetContentDefinitionAsync ( ) ; return scopedCache . ContentDefinitionRecord = result ; }
Loads a single document (or create a new one) for updating and that should not be cached.
Loads a single document ( or create a new one ) for updating and that should not be cached .