Class DotNetFileSystemFactory
The factory creating/getting the file systems that use System.IO for its implementation
Inherited Members
Namespace:FubarDev.WebDavServer.FileSystem.DotNet
Assembly:FubarDev.WebDavServer.FileSystem.DotNet.dll
Syntax
public class DotNetFileSystemFactory : IFileSystemFactory
Constructors
| Improve this Doc View SourceDotNetFileSystemFactory(IOptions<DotNetFileSystemOptions>, IPathTraversalEngine, IPropertyStoreFactory, ILockManager)
Initializes a new instance of the DotNetFileSystemFactory class.
Declaration
public DotNetFileSystemFactory([NotNull] IOptions<DotNetFileSystemOptions> options, [NotNull] IPathTraversalEngine pathTraversalEngine, IPropertyStoreFactory propertyStoreFactory = null, ILockManager lockManager = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.Options.IOptions<DotNetFileSystemOptions> | options | The options for this file system |
| IPathTraversalEngine | pathTraversalEngine | The engine to traverse paths |
| IPropertyStoreFactory | propertyStoreFactory | The store for dead properties |
| ILockManager | lockManager | The global lock manager |
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 |