A file system factory.
More...
A file system factory.
It is used to connect file systems declared in configuration with their implementation.
◆ Create()
static IFileSystem Create |
( |
string |
name, |
|
|
IReadOnlyDictionary< string, string > |
options |
|
) |
| |
|
inlinestatic |
Creates file system.
- Parameters
-
name | A name of the file system. |
options | A dictionary of options for the file system. |
- Returns
- A file system instance.
◆ RegisterFileSystem() [1/2]
static void RegisterFileSystem |
( |
string |
name, |
|
|
Func< IReadOnlyDictionary< string, string >, IFileSystem > |
fileSystemBuilder |
|
) |
| |
|
inlinestatic |
Registers new file system type.
- Parameters
-
name | A name of the file system as it will be used in configuration. |
fileSystemBuilder | A builder for the file system. |
◆ RegisterFileSystem() [2/2]
static void RegisterFileSystem |
( |
Type |
fileSystemType | ) |
|
|
inlinestatic |
Registers new file system type.
Currently supports LocalFileSystem, AmazonFileSystem, AzureFileSystem, DropboxFileSystem and FtpFileSystem.
- Parameters
-
fileSystemType | A type of the file system. |
◆ RegisterFileSystem< T >()
Registers new file system type.
Currently supports LocalFileSystem, AmazonFileSystem, AzureFileSystem, DropboxFileSystem and FtpFileSystem.
- Template Parameters
-
T | A type of the file system. |
The documentation for this class was generated from the following file: