Documentation
Table of Contents

Method AddIfAbsentAsync

Namespace
IntentSharp.Mapping
Assembly
IntentSharp.dll

AddIfAbsentAsync(CompiledMapping, CancellationToken)

First writer wins: when the key has no active revision, stores mapping as the next revision (1 for a new key) with the status Active. Returns the active row: this one, or the one another writer stored first.

Task<CompiledMapping> AddIfAbsentAsync(CompiledMapping mapping, CancellationToken cancellationToken = default)

Parameters

mapping CompiledMapping

The row to store, under its Namespace and Key.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<CompiledMapping>