IAssetsAccessContext Interface

Definition

Asset access scope. Locks taken in the same scope will not block each other.

public interface class IAssetsAccessContext
public interface class IAssetsAccessContext
__interface IAssetsAccessContext
public interface IAssetsAccessContext
type IAssetsAccessContext = interface
Public Interface IAssetsAccessContext

Properties

YieldRequest

Cancellation token when AccessControl services will request the context owner to yield as soon as possible when more important task require access to some of the resources currently locked

Methods

GetAccessAsync(IEnumerable<String>, AssetsLockScope, CancellationToken, Int32)

Get Access to a file or folder (folder access will apply to all items under that folder recursively).

Throws OperationCanceledException if "cancel" is canceled Throws AccessLockYieldRequestException if context is requested to yield to other more important workflow

Extension Methods

ExecuteUnderLockWithRetry<T>(IAssetsAccessContext, Func<CancellationToken,Task<T>>, IEnumerable<String>, AssetsLockScope, CancellationToken)

Execute action wilt lock yield and retry;

ExecuteUnderLockWithRetry<T>(IAssetsAccessContext, Func<CancellationToken,Task<T>>, String, AssetsLockScope, CancellationToken)

Execute action wilt lock yield and retry;

GetAccessAsync(IAssetsAccessContext, String, AssetsLockScope, CancellationToken, Int32)

Get Access to a file or folder (folder access will apply to all items under that folder recursively).

Note: it will throw canceled exception if the scope CancelRequest becomes active (in addition the cancel token).

Applies to