Class ContentAndWebRootFileProviderFactory
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.Common.FileProviders
Assembly: Umbraco.Web.Common.dll
Syntax
public class ContentAndWebRootFileProviderFactory : IManifestFileProviderFactory
Constructors
View SourceContentAndWebRootFileProviderFactory(IWebHostEnvironment)
Initializes a new instance of the ContentAndWebRootFileProviderFactory class.
Declaration
public ContentAndWebRootFileProviderFactory(IWebHostEnvironment webHostEnvironment)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Hosting.IWebHostEnvironment | webHostEnvironment | The web hosting environment an application is running in. |
Methods
View SourceCreate()
Creates a new Microsoft.Extensions.FileProviders.IFileProvider instance, pointing at WebRootPath and ContentRootPath.
Declaration
public IFileProvider Create()
Returns
Type | Description |
---|---|
Microsoft.Extensions.FileProviders.IFileProvider | The newly created Microsoft.Extensions.FileProviders.IFileProvider instance. |