Class InMemoryFileProvider
Provides an in-memory file provider for serving files and directory contents dynamically. This class implements IFileProvider to provide virtual files, allowing for dynamic creation, updates, and retrieval of file and directory structures.
Key Features:
- Stores files in memory with an DynamicData.ISourceCache<TObject, TKey> for efficient access.
- Handles URL-decoded paths to accommodate browser-originated file requests.
- Supports retrieving individual files via GetFileInfo(string).
- Supports listing directory contents via GetDirectoryContents(string).
- Automatically updates the count of files available.
Implements
Inherited Members
Namespace: PoeShared.Scaffolding
Assembly: PoeShared.dll
Syntax
public sealed class InMemoryFileProvider : DisposableReactiveObjectWithLogger, INotifyPropertyChanged, IInMemoryFileProvider, IFileProvider, ISourceCache<IFileInfo, OSPath>, IObservableCache<IFileInfo, OSPath>, IConnectableCache<IFileInfo, OSPath>, IObservableCache<IFileInfo, OSPath>, IConnectableCache<IFileInfo, OSPath>, IDisposable
Constructors
Name | Description |
---|---|
InMemoryFileProvider() | Initializes a new instance of the InMemoryFileProvider class. |
Properties
Name | Description |
---|---|
Count | Gets the number of files currently stored in memory. |
CountChanged | |
FilesByName | Provides a reactive source of files stored in memory. |
Items | |
KeySelector | |
KeyValues | |
Keys |
Methods
Extension Methods
NotifyPropertyChangedExtensions.GetPropertyName<TObject, T1>(TObject, Expression<Func<TObject, T1>>)
NotifyPropertyChangedExtensions.WhenAnyProperty<TObject, T1>(TObject, Expression<Func<TObject, T1>>)