Table of Contents

Method RunForUserAsync

Namespace
Oscova.Agents.Persistence
Assembly
Oscova.Agents.dll

RunForUserAsync(string, Func<CancellationToken, Task>, CancellationToken)

Runs an update while excluding concurrent updates for the same user.

public Task RunForUserAsync(string userId, Func<CancellationToken, Task> updateAsync, CancellationToken ct = default)

Parameters

userId string
updateAsync Func<CancellationToken, Task>
ct CancellationToken

Returns

Task