Skip to content

Method SetContext

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

SetContext(IMethodExecutionContext)

Sets the current execution context for the current async context.

csharp
IDisposable SetContext(IMethodExecutionContext context)

Parameters

context IMethodExecutionContext

The execution context to set.

Returns

IDisposable

A disposable that restores the previous context when disposed.

Released under the Apache License 2.0.