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