Table of Contents

Interface IConcurrencyLock<T>

Namespace
Duende.IdentityServer.Internal
Assembly
Duende.IdentityServer.dll

Interface to model locking.

public interface IConcurrencyLock<T>

Type Parameters

T

Methods

LockAsync(int)

Locks. Returns false if lock was not obtained within in the timeout.

Task<bool> LockAsync(int millisecondsTimeout)

Parameters

millisecondsTimeout int

Returns

Task<bool>

Unlock()

Unlocks

void Unlock()