Class WebRootFileProviderFactory
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.Common.FileProviders
Assembly: Umbraco.Web.Common.dll
Syntax
public class WebRootFileProviderFactory : IManifestFileProviderFactory
Constructors
View SourceWebRootFileProviderFactory(IWebHostEnvironment)
Initializes a new instance of the WebRootFileProviderFactory class.
Declaration
public WebRootFileProviderFactory(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 Microsoft.AspNetCore.Hosting.IWebHostEnvironment.WebRootPath.
Declaration
public IFileProvider Create()
Returns
| Type | Description |
|---|---|
| Microsoft.Extensions.FileProviders.IFileProvider | The newly created Microsoft.Extensions.FileProviders.IFileProvider instance. |