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();
void Delete(string path, string fileName);
void Delete(string path);
ICentralizedFile GetFile(string path, string fileName);
IEnumerable<ICentralizedFile> GetFiles(string path, PathSearchOption searchOption);
IEnumerable<ICentralizedFile> GetFiles(PathSearchOption searchOption);
IEnumerable<string> GetPaths();
IEnumerable<string> GetPaths(string path);
void Initialize(string fileStoreKey, XmlNode configurationNode);
}
|
名称 |
类型 |
描述 |
默认值 |
选项 |
|
FileStoreKey |
string |
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
path |
string |
Path |
是 |
||
|
fileName |
string |
File Name |
是 |
||
|
contentStream |
Stream |
Content Stream |
是 |
||
|
ensureUniqueFileName |
bool |
Ensure Unique File Name |
是 |
ICentralizedFile
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
path |
string |
Path |
是 |
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
path |
string |
Path |
是 |
||
|
fileName |
string |
File Name |
是 |
||
|
contentStream |
Stream |
Content Stream |
是 |
ICentralizedFile
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
path |
string |
Path |
是 |
||
|
fileName |
string |
File Name |
是 |
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
path |
string |
Path |
是 |
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
path |
string |
Path |
是 |
||
|
fileName |
string |
File Name |
是 |
ICentralizedFile
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
path |
string |
Path |
是 |
||
|
searchOption |
PathSearchOption |
Search Option |
是 |
IEnumerable<ICentralizedFile>
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
searchOption |
PathSearchOption |
Search Option |
是 |
IEnumerable<ICentralizedFile>
IEnumerable<string>
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
path |
string |
Path |
Required |
IEnumerable<string>
|
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
|
fileStoreKey |
string |
File Store Key |
是 |
||
|
configurationNode |
XmlNode |
Configuration Node |
是 |