# ExecutionContextSuppressor

Package: [Microsoft.Orleans.Core](/orleans/docs/api/csharp/microsoft.orleans.core/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Core) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Utils/ExecutionContextSuppressor.cs#L11)

```csharp
public struct ExecutionContextSuppressor
```

Suppresses the flow of `System.Threading.ExecutionContext` until it is disposed.

## Remarks

Note that this is a ref-struct to avoid it being used in an async method.

## Constructors

- [ExecutionContextSuppressor](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.internal.executioncontextsuppressor/constructors/constructor-8f747fcf/)

## Methods

- [Dispose](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.internal.executioncontextsuppressor/methods/dispose-056d23b3/)
