Show / Hide Table of Contents

Class DynamicFileProvider

Inheritance
System.Object
DictionaryBasedFileProvider
DynamicFileProvider
Implements
IDynamicFileProvider
IFileProvider
ISingletonDependency
Inherited Members
DictionaryBasedFileProvider.GetFileInfo(String)
DictionaryBasedFileProvider.GetDirectoryContents(String)
DictionaryBasedFileProvider.NormalizePath(String)
Namespace: Volo.Abp.VirtualFileSystem
Assembly: Volo.Abp.VirtualFileSystem.dll
Syntax
public class DynamicFileProvider : DictionaryBasedFileProvider, IDynamicFileProvider, IFileProvider, ISingletonDependency
Remarks

Current implementation only supports file watch. Does not support directory or wildcard watches.

Constructors

DynamicFileProvider()

Declaration
public DynamicFileProvider()

Properties

DynamicFiles

Declaration
protected ConcurrentDictionary<string, IFileInfo> DynamicFiles { get; }
Property Value
Type Description
ConcurrentDictionary<System.String, IFileInfo>

FilePathTokenLookup

Declaration
protected ConcurrentDictionary<string, DynamicFileProvider.ChangeTokenInfo> FilePathTokenLookup { get; }
Property Value
Type Description
ConcurrentDictionary<System.String, DynamicFileProvider.ChangeTokenInfo>

Files

Declaration
protected override IDictionary<string, IFileInfo> Files { get; }
Property Value
Type Description
IDictionary<System.String, IFileInfo>
Overrides
DictionaryBasedFileProvider.Files

Methods

AddOrUpdate(IFileInfo)

Declaration
public void AddOrUpdate(IFileInfo fileInfo)
Parameters
Type Name Description
IFileInfo fileInfo

Delete(String)

Declaration
public bool Delete(string filePath)
Parameters
Type Name Description
System.String filePath
Returns
Type Description
System.Boolean

Watch(String)

Declaration
public override IChangeToken Watch(string filter)
Parameters
Type Name Description
System.String filter
Returns
Type Description
IChangeToken
Overrides
DictionaryBasedFileProvider.Watch(String)

Implements

IDynamicFileProvider
IFileProvider
ISingletonDependency

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft