CKFinder 3 – ASP.NET Connector Documentation
FileSystemFactory Class Reference

A file system factory. More...

Static Public Member Functions

static void RegisterFileSystem (string name, Func< IReadOnlyDictionary< string, string >, IFileSystem > fileSystemBuilder)
 Registers new file system type. More...
 
static void RegisterFileSystem< T > ()
 Registers new file system type. More...
 
static void RegisterFileSystem (Type fileSystemType)
 Registers new file system type. More...
 
static IFileSystem Create (string name, IReadOnlyDictionary< string, string > options)
 Creates file system. More...
 

Detailed Description

A file system factory.

It is used to connect file systems declared in configuration with their implementation.

Member Function Documentation

◆ Create()

static IFileSystem Create ( string  name,
IReadOnlyDictionary< string, string >  options 
)
inlinestatic

Creates file system.

Parameters
nameA name of the file system.
optionsA 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
nameA name of the file system as it will be used in configuration.
fileSystemBuilderA 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
fileSystemTypeA type of the file system.

◆ RegisterFileSystem< T >()

static void RegisterFileSystem< T > ( )
inlinestatic

Registers new file system type.

Currently supports LocalFileSystem, AmazonFileSystem, AzureFileSystem, DropboxFileSystem and FtpFileSystem.

Template Parameters
TA type of the file system.
Type Constraints
T :IFileSystem 

The documentation for this class was generated from the following file: