Interface ITenantDatabaseMigrationInterceptor
- Namespace
- GroupeIsa.Neos.Application.MultiTenant
- Assembly
- GroupeIsa.Neos.Application.Abstractions.dll
Provides the functionalities of a migration interceptor for customizing a migration on the specified tenant.
public interface ITenantDatabaseMigrationInterceptor
Methods
OnTenantDatabaseMigratedAsync(TenantDatabaseMigratedEventData)
Method call after the migration for a tenant. Allows the customization by adding process after the migration for each tenant. In multitenant mode, this method is called sequentially for each tenant. (no parallelization to avoid database access problem and facilitate debug).
Task<Result> OnTenantDatabaseMigratedAsync(TenantDatabaseMigratedEventData tenantDatabaseMigratedEventData)
Parameters
tenantDatabaseMigratedEventDataTenantDatabaseMigratedEventDataData.
Returns
- Task<Result>
Task with Result.
OnTenantDatabaseMigratedAsync(TenantDatabaseMigratedEventData, CancellationToken)
Method call after the migration for a tenant. Allows the customization by adding process after the migration for each tenant. In multitenant mode, this method is called sequentially for each tenant. (no parallelization to avoid database access problem and facilitate debug).
Task<Result> OnTenantDatabaseMigratedAsync(TenantDatabaseMigratedEventData tenantDatabaseMigratedEventData, CancellationToken cancellationToken)
Parameters
tenantDatabaseMigratedEventDataTenantDatabaseMigratedEventDataData.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
- Task<Result>
Task with Result.