Skip to content

Class ExecutionContextService

Namespace: Belay.Core.Execution
Assembly: Belay.Core.dll

Thread-safe implementation of execution context service using AsyncLocal.

csharp
public sealed class ExecutionContextService : IExecutionContextService

Inheritance

objectExecutionContextService

Implements

IExecutionContextService

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

Current

Gets the current method execution context.

Methods

ClearContext()

Clears the current execution context.

SetContext(IMethodExecutionContext)

Sets the current execution context for the current async context.

Released under the Apache License 2.0.