Пример #1
0
 public void RenameProvider(SharpBoxProviderInfo sharpBoxProviderInfo, string newTitle)
 {
     using (var dbDao = new ProviderAccountDao(CoreContext.TenantManager.GetCurrentTenant().TenantId, FileConstant.DatabaseId))
     {
         dbDao.UpdateProviderInfo(sharpBoxProviderInfo.ID, newTitle, sharpBoxProviderInfo.RootFolderType);
         sharpBoxProviderInfo.UpdateTitle(newTitle); //This will update cached version too
     }
 }
Пример #2
0
 public void Dispose()
 {
     SharpBoxProviderInfo.Dispose();
 }
 public void InvalidateCache(object fileId)
 {
     SharpBoxProviderInfo.InvalidateStorage();
 }