예제 #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);
 }