public void Migrate(int tenant, StorageSettings storageSettings) { var storSettings = new StorSettings { ID = storageSettings.ID.ToString(), Module = storageSettings.Module }; CacheMigrationNotify.Publish(new MigrationCache { TenantId = tenant, StorSettings = storSettings }, CacheNotifyAction.Insert); }
public void StopMigrate() { CacheMigrationNotify.Publish(new MigrationCache(), CacheNotifyAction.InsertOrUpdate); }