Class WebContentFileProvider
Inheritance
System.Object
WebContentFileProvider
Implements
Microsoft.Extensions.FileProviders.IFileProvider
ISingletonDependency
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Volo.Abp.AspNetCore.VirtualFileSystem
Assembly: Volo.Abp.AspNetCore.dll
Syntax
public class WebContentFileProvider : IWebContentFileProvider, IFileProvider, ISingletonDependency
Constructors
WebContentFileProvider(IVirtualFileProvider, IWebHostEnvironment, IOptions<AbpAspNetCoreContentOptions>)
Declaration
public WebContentFileProvider(IVirtualFileProvider virtualFileProvider, IWebHostEnvironment hostingEnvironment, IOptions<AbpAspNetCoreContentOptions> options)
Parameters
| Type | Name | Description |
|---|---|---|
| IVirtualFileProvider | virtualFileProvider | |
| Microsoft.AspNetCore.Hosting.IWebHostEnvironment | hostingEnvironment | |
| Microsoft.Extensions.Options.IOptions<AbpAspNetCoreContentOptions> | options |
Properties
Options
Declaration
protected AbpAspNetCoreContentOptions Options { get; }
Property Value
| Type | Description |
|---|---|
| AbpAspNetCoreContentOptions |
Methods
CreateFileProvider()
Declaration
protected virtual IFileProvider CreateFileProvider()
Returns
| Type | Description |
|---|---|
| Microsoft.Extensions.FileProviders.IFileProvider |
ExtraAllowedExtension(String)
Declaration
protected virtual bool ExtraAllowedExtension(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path |
Returns
| Type | Description |
|---|---|
| System.Boolean |
ExtraAllowedFolder(String)
Declaration
protected virtual bool ExtraAllowedFolder(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path |
Returns
| Type | Description |
|---|---|
| System.Boolean |
GetDirectoryContents(String)
Declaration
public virtual IDirectoryContents GetDirectoryContents(string subpath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | subpath |
Returns
| Type | Description |
|---|---|
| Microsoft.Extensions.FileProviders.IDirectoryContents |
GetFileInfo(String)
Declaration
public virtual IFileInfo GetFileInfo(string subpath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | subpath |
Returns
| Type | Description |
|---|---|
| Microsoft.Extensions.FileProviders.IFileInfo |
Watch(String)
Declaration
public virtual IChangeToken Watch(string filter)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filter |
Returns
| Type | Description |
|---|---|
| Microsoft.Extensions.Primitives.IChangeToken |
Implements
Microsoft.Extensions.FileProviders.IFileProvider
ISingletonDependency