ICentralizedFileStorageProvider
is defined in the Telligent.Evolution.Extensibility.Storage.Version1
namespace of Telligent.Evolution.Platform.dll
Definition
interface ICentralizedFileStorageProvider { string FileStoreKey { get; } ICentralizedFile AddFile(string path, string fileName, Stream contentStream, bool ensureUniqueFileName); void AddPath(string path); ICentralizedFile AddUpdateFile(string path, string fileName, Stream contentStream); void Delete(string path, string fileName); void Delete(); void Delete(string path); ICentralizedFile GetFile(string path, string fileName); IEnumerable<ICentralizedFile> GetFiles(PathSearchOption searchOption); IEnumerable<ICentralizedFile> GetFiles(string path, PathSearchOption searchOption); IEnumerable<string> GetPaths(); IEnumerable<string> GetPaths(string path); void Initialize(string fileStoreKey, XmlNode configurationNode); }
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
FileStoreKey | string |
Methods
ICentralizedFile AddFile(string path, string fileName, Stream contentStream, bool ensureUniqueFileName);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
path | string | Path | Required | ||
fileName | string | File Name | Required | ||
contentStream | Stream | Content Stream | Required | ||
ensureUniqueFileName | bool | Ensure Unique File Name | Required |
Return Type
void AddPath(string path);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
path | string | Path | Required |
ICentralizedFile AddUpdateFile(string path, string fileName, Stream contentStream);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
path | string | Path | Required | ||
fileName | string | File Name | Required | ||
contentStream | Stream | Content Stream | Required |
Return Type
void Delete(string path, string fileName);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
path | string | Path | Required | ||
fileName | string | File Name | Required |
void Delete();
void Delete(string path);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
path | string | Path | Required |
ICentralizedFile GetFile(string path, string fileName);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
path | string | Path | Required | ||
fileName | string | File Name | Required |
Return Type
IEnumerable<ICentralizedFile> GetFiles(PathSearchOption searchOption);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
searchOption | PathSearchOption | Search Option | Required |
Return Type
IEnumerable<ICentralizedFile>
IEnumerable<ICentralizedFile> GetFiles(string path, PathSearchOption searchOption);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
path | string | Path | Required | ||
searchOption | PathSearchOption | Search Option | Required |
Return Type
IEnumerable<ICentralizedFile>
IEnumerable<string> GetPaths();
Return Type
IEnumerable<string>
IEnumerable<string> GetPaths(string path);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
path | string | Path | Required |
Return Type
IEnumerable<string>
void Initialize(string fileStoreKey, XmlNode configurationNode);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileStoreKey | string | File Store Key | Required | ||
configurationNode | XmlNode | Configuration Node | Required |