IOperationOverlord

Namespace: SnowBank.Threading.Operations · interface

Service that monitors the executions of operations in the scope of the process

Methods

ListOperations

IOperationContext[] ListOperations()

Lists all currently running operations

TryGetOperationById

bool TryGetOperationById(string id, out IOperationContext context)

Returns the context for the operation with the given unique identifier, if it exists

  • id — Identifier of the operation
  • context — Receives the context of the corresponding context, if found.

Returns: true if there is an operation with the given id; otherwise, false