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