Class DynamicFileProvider
Implements
Microsoft.Extensions.FileProviders.IFileProvider
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.VirtualFileSystem
Assembly: Volo.Abp.VirtualFileSystem.dll
Syntax
public class DynamicFileProvider : DictionaryBasedFileProvider, IDynamicFileProvider, IFileProvider, ISingletonDependency
Constructors
DynamicFileProvider()
Declaration
public DynamicFileProvider()
Properties
DynamicFiles
Declaration
protected ConcurrentDictionary<string, IFileInfo> DynamicFiles { get; }
Property Value
Type | Description |
---|---|
System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue><string, Microsoft.Extensions.FileProviders.IFileInfo> |
FilePathTokenLookup
Declaration
protected ConcurrentDictionary<string, DynamicFileProvider.ChangeTokenInfo> FilePathTokenLookup { get; }
Property Value
Type | Description |
---|---|
System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue><string, DynamicFileProvider.ChangeTokenInfo> |
Files
Declaration
protected override IDictionary<string, IFileInfo> Files { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<TKey, TValue><string, Microsoft.Extensions.FileProviders.IFileInfo> |
Overrides
Methods
AddOrUpdate(IFileInfo)
Declaration
public void AddOrUpdate(IFileInfo fileInfo)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.FileProviders.IFileInfo | fileInfo |
Delete(string)
Declaration
public bool Delete(string filePath)
Parameters
Type | Name | Description |
---|---|---|
string | filePath |
Returns
Type | Description |
---|---|
bool |
Watch(string)
Declaration
public override IChangeToken Watch(string filter)
Parameters
Type | Name | Description |
---|---|---|
string | filter |
Returns
Type | Description |
---|---|
Microsoft.Extensions.Primitives.IChangeToken |
Overrides
Implements
Microsoft.Extensions.FileProviders.IFileProvider