Пример #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);
 }