Class AuthenticationTypeDomainMappingBase
Abstract base class for IAuthenticationTypeDomainMapping implementations.
Inheritance
Implements
Namespace: Tableau.Migration.Engine.Hooks.Mappings.Default
Assembly: Tableau.Migration.dll
Syntax
public abstract class AuthenticationTypeDomainMappingBase : IAuthenticationTypeDomainMapping, IContentMapping<IUser>, IMigrationHook<ContentMappingContext<IUser>>, IContentMapping<IGroup>, IMigrationHook<ContentMappingContext<IGroup>>
Methods
ExecuteAsync(ContentMappingContext<IGroup>, CancellationToken)
Executes a hook callback.
Declaration
public Task<ContentMappingContext<IGroup>?> ExecuteAsync(ContentMappingContext<IGroup> ctx, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
ContentMappingContext<IGroup> | ctx | The input context from the migration engine or previous hook. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<ContentMappingContext<IGroup>> | A task to await containing the context,
potentially modified to pass on to the next hook or migration engine,
or null to continue passing the same context as |
ExecuteAsync(ContentMappingContext<IUser>, CancellationToken)
Executes a hook callback.
Declaration
public Task<ContentMappingContext<IUser>?> ExecuteAsync(ContentMappingContext<IUser> ctx, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
ContentMappingContext<IUser> | ctx | The input context from the migration engine or previous hook. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<ContentMappingContext<IUser>> | A task to await containing the context,
potentially modified to pass on to the next hook or migration engine,
or null to continue passing the same context as |
ExecuteAsync<T>(ContentMappingContext<T>, CancellationToken)
Executes the mapping for a user or group.
Declaration
protected abstract Task<ContentMappingContext<T>?> ExecuteAsync<T>(ContentMappingContext<T> context, CancellationToken cancel) where T : IUsernameContent
Parameters
Type | Name | Description |
---|---|---|
ContentMappingContext<T> | context | The mapping context. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<ContentMappingContext<T>> | The mapped context. |
Type Parameters
Name | Description |
---|---|
T | The IUsernameContent type. |