Documentation
Table of Contents

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.

public Task<CompiledMapping> ActivateAsync(string @namespace, string key, int revision, MappingRetiredReason reason, CancellationToken cancellationToken = default)

Parameters

namespace string

The namespace.

key string

The mapping key.

revision int

The pending revision to activate.

reason MappingRetiredReason

Why the active revision is retired.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<CompiledMapping>

Exceptions

InvalidOperationException

The key has no such revision, or it is not pending.