Interface IDeleteByKeyVersionedAction<TKey>
- Namespace
- FishMMO.Database.Npgsql.Services.Interfaces.Actions
- Assembly
- FishMMO-DB.dll
Defines a version-gated delete operation keyed by a single value.
public interface IDeleteByKeyVersionedAction<TKey>
Type Parameters
TKeyThe key type used to locate the entity.
Remarks
Intended for service interfaces that enforce optimistic concurrency via a logical, monotonic version.
Implementations should reject stale deletes when incomingVersion is not newer.
Methods
DeleteAsync(TKey, long, CancellationToken)
Deletes the entity identified by the given key if incomingVersion is newer.
Task<DatabaseResult> DeleteAsync(TKey key, long incomingVersion, CancellationToken cancellationToken = default)
Parameters
keyTKeyThe key used to locate the entity.
incomingVersionlongThe authoritative, monotonic version for this delete operation.
cancellationTokenCancellationTokenToken to cancel the operation.