• Core
  • Infrastructure
  • Web
  • Extensions
Search Results for

    Show / Hide Table of Contents
    View Source

    Class FileSystems

    Provides the system filesystems.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.IO
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class FileSystems

    Constructors

    View Source

    FileSystems(ILoggerFactory, IIOHelper, IOptions<GlobalSettings>, IHostingEnvironment)

    Declaration
    public FileSystems(ILoggerFactory loggerFactory, IIOHelper ioHelper, IOptions<GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment)
    Parameters
    Type Name Description
    ILoggerFactory loggerFactory
    IIOHelper ioHelper
    IOptions<GlobalSettings> globalSettings
    IHostingEnvironment hostingEnvironment

    Properties

    View Source

    IsScoped

    Used be Scope provider to take control over the filesystems, should never be used for anything else.

    Declaration
    public Func<bool?>? IsScoped { get; set; }
    Property Value
    Type Description
    System.Nullable<Func<System.Nullable<System.Boolean>>>
    View Source

    MacroPartialsFileSystem

    Gets the macro partials filesystem.

    Declaration
    public IFileSystem MacroPartialsFileSystem { get; }
    Property Value
    Type Description
    IFileSystem
    View Source

    MvcViewsFileSystem

    Gets the MVC views filesystem.

    Declaration
    public IFileSystem MvcViewsFileSystem { get; }
    Property Value
    Type Description
    IFileSystem
    View Source

    PartialViewsFileSystem

    Gets the partial views filesystem.

    Declaration
    public IFileSystem PartialViewsFileSystem { get; }
    Property Value
    Type Description
    IFileSystem
    View Source

    ScriptsFileSystem

    Gets the scripts filesystem.

    Declaration
    public IFileSystem ScriptsFileSystem { get; }
    Property Value
    Type Description
    IFileSystem
    View Source

    StylesheetsFileSystem

    Gets the stylesheets filesystem.

    Declaration
    public IFileSystem StylesheetsFileSystem { get; }
    Property Value
    Type Description
    IFileSystem

    Methods

    View Source

    CreateShadowWrapper(IFileSystem, String)

    Creates a shadow wrapper for a filesystem, should never be used outside UmbracoBuilder or testing

    Declaration
    public IFileSystem CreateShadowWrapper(IFileSystem filesystem, string shadowPath)
    Parameters
    Type Name Description
    IFileSystem filesystem
    System.String shadowPath
    Returns
    Type Description
    IFileSystem
    View Source

    SetStylesheetFilesystem(IFileSystem)

    Sets the stylesheet filesystem.

    Declaration
    public void SetStylesheetFilesystem(IFileSystem fileSystem)
    Parameters
    Type Name Description
    IFileSystem fileSystem

    The IFileSystem.

    Remarks

    Be careful when using this, the root path and root url must be correct for this to work.

    View Source

    Shadow()

    Shadows the filesystem, should never be used outside the Scope class.

    Declaration
    public ICompletable Shadow()
    Returns
    Type Description
    ICompletable
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • FileSystems(ILoggerFactory, IIOHelper, IOptions<GlobalSettings>, IHostingEnvironment)
    • Properties
      • IsScoped
      • MacroPartialsFileSystem
      • MvcViewsFileSystem
      • PartialViewsFileSystem
      • ScriptsFileSystem
      • StylesheetsFileSystem
    • Methods
      • CreateShadowWrapper(IFileSystem, String)
      • SetStylesheetFilesystem(IFileSystem)
      • Shadow()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX