Method AddPendingAsync
- Namespace
- IntentSharp.Mapping
- Assembly
- IntentSharp.dll
AddPendingAsync(CompiledMapping, CancellationToken)
Stores pending as the next revision with the status Pending and leaves the active revision as it
is, for a replacement held until someone activates it. Returns the row as stored.
public Task<CompiledMapping> AddPendingAsync(CompiledMapping pending, CancellationToken cancellationToken = default)
Parameters
pendingCompiledMappingThe row to hold.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<CompiledMapping>
Exceptions
- ArgumentNullException
pendingis null.- ArgumentException
The row cannot be stored.