Documentation
Table of Contents

Method RetireAsync

Namespace
IntentSharp.Mapping
Assembly
IntentSharp.dll

RetireAsync(string, string, int, MappingRetiredReason, CancellationToken)

Retires an active or pending revision with reason, for example a stored row the library refused. Returns true when the revision was active or pending and is now retired, false when it does not exist or was retired already.

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

Parameters

namespace string

The namespace.

key string

The mapping key.

revision int

The revision to retire.

reason MappingRetiredReason

Why it is retired.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<bool>