Class InMemoryFileSystemFactory
An in-memory implementation of the IFileSystemFactory
Inherited Members
Namespace:FubarDev.WebDavServer.FileSystem.InMemory
Assembly:FubarDev.WebDavServer.FileSystem.InMemory.dll
Syntax
public class InMemoryFileSystemFactory : IFileSystemFactory
Constructors
| Improve this Doc View SourceInMemoryFileSystemFactory(IPathTraversalEngine, ISystemClock, ILockManager, IPropertyStoreFactory)
Initializes a new instance of the InMemoryFileSystemFactory class.
Declaration
public InMemoryFileSystemFactory([NotNull] IPathTraversalEngine pathTraversalEngine, [NotNull] ISystemClock systemClock, ILockManager lockManager = null, IPropertyStoreFactory propertyStoreFactory = null)
Parameters
Type | Name | Description |
---|---|---|
IPathTraversalEngine | pathTraversalEngine | The engine to traverse paths |
ISystemClock | systemClock | Interface for the access to the systems clock |
ILockManager | lockManager | The global lock manager |
IPropertyStoreFactory | propertyStoreFactory | The store for dead properties |
Methods
| Improve this Doc View SourceCreateFileSystem(ICollection, IPrincipal)
Gets the IFileSystem instance for the given principal
Declaration
public virtual IFileSystem CreateFileSystem(ICollection mountPoint, IPrincipal principal)
Parameters
Type | Name | Description |
---|---|---|
ICollection | mountPoint | The mount point where this file system should be included |
IPrincipal | principal | The current principal to get the IFileSystem instance for |
Returns
Type | Description |
---|---|
IFileSystem | The IFileSystem instance for the principal |
Implements
| Improve this Doc View SourceInitializeFileSystem(ICollection, IPrincipal, InMemoryFileSystem)
Called when file system will be initialized
Declaration
protected virtual void InitializeFileSystem([CanBeNull] ICollection mountPoint, [NotNull] IPrincipal principal, [NotNull] InMemoryFileSystem fileSystem)
Parameters
Type | Name | Description |
---|---|---|
ICollection | mountPoint | The mount point |
IPrincipal | principal | The principal the file system was created for |
InMemoryFileSystem | fileSystem | The created file system |
UpdateFileSystem(ICollection, IPrincipal, InMemoryFileSystem)
Called when the file system will be updated
Declaration
protected virtual void UpdateFileSystem([CanBeNull] ICollection mountPoint, [NotNull] IPrincipal principal, [NotNull] InMemoryFileSystem fileSystem)
Parameters
Type | Name | Description |
---|---|---|
ICollection | mountPoint | The mount point |
IPrincipal | principal | The principal the file system was created for |
InMemoryFileSystem | fileSystem | The created file system |