示例#1
0
 public string AddFile(string path, Stream data, NameValueCollection userMetadata)
 {
     //path = DfsHelper.ParseToDfsPath(path, _appConfig.BucketName);
     path = new DfsPath(_appConfig.ApplicationName, _appConfig.BucketName, path).ToString();
     return(_service.AddFile(path, data, userMetadata));
 }
示例#2
0
 public string AddFile(string path, Stream content)
 {
     return(_storage.AddFile(path, content));
 }