Method ActivateAsync
- Namespace
- IntentSharp.Mapping
- Assembly
- IntentSharp.dll
ActivateAsync(string, string, int, MappingRetiredReason, CancellationToken)
In one transaction: retires the active revision of the key, if there is one, with reason and makes
the pending revision active. Returns the active row.
Task<CompiledMapping> ActivateAsync(string @namespace, string key, int revision, MappingRetiredReason reason, CancellationToken cancellationToken = default)
Parameters
namespacestringThe namespace.
keystringThe mapping key.
revisionintThe pending revision to activate.
reasonMappingRetiredReasonWhy the active revision is retired.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<CompiledMapping>
Exceptions
- InvalidOperationException
The key has no such revision, or it is not pending.