示例#1
0
 public virtual List <string> GetContainerList(string startPattern = null)
 {
     using (var service = new SystemConnection())
     {
         return(service.GetContainerList(this.GetTenantID(), startPattern));
     }
 }
示例#2
0
 public virtual int RemoveFile(string fileName)
 {
     using (var service = new SystemConnection())
     {
         return(service.RemoveFile(this.GetTenantID(), _container, fileName));
     }
 }
示例#3
0
 public virtual int RemoveAll()
 {
     using (var service = new SystemConnection())
     {
         return(service.RemoveAll(this.GetTenantID(), _container));
     }
 }
示例#4
0
 private Guid GetTenantID()
 {
     if (_tenantID == Guid.Empty)
     {
         using (var service = new SystemConnection())
         {
             _tenantID = service.GetOrAddTenant(_tenantName);
         }
     }
     return(_tenantID);
 }