/// <inheritdoc /> public void Execute( DeleteDatabaseOp operation) { operation.MustForArg(nameof(operation)).NotBeNull(); // Change to master database since it is guaranteed to be there. var connectionString = this.sqlServerLocator .DeepCloneWithDatabaseName(SqlServerDatabaseManager.MasterDatabaseName) .BuildConnectionString(this.defaultConnectionTimeout); SqlServerDatabaseManager.Delete(connectionString, operation.DatabaseName, this.defaultCommandTimeout); }
/// <inheritdoc /> public async Task ExecuteAsync( DeleteDatabaseOp operation) { this.Execute(operation); await Task.FromResult(true); // just for the await... }