Click or drag to resize

ExecutionContextStash Structure

This is preliminary documentation and is subject to change.

This type is infrastructure of WCL and is not intended to be used directly in your own code. Restores the execution context by calling Dispose on this structure.
Inheritance Hierarchy
SystemObject
  SystemValueType
    WikiClientLibrary.InfrastructuresExecutionContextStash

Namespace: WikiClientLibrary.Infrastructures
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public readonly struct ExecutionContextStash : IDisposable

The ExecutionContextStash type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCapture 
Public methodDisposeCalls RestoreExecutionContext.
Public methodEqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
Public methodGetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodRestoreExecutionContext Restores the captured execution context.
Public methodToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)
Top
Remarks
This helper is for correctly restoring execution context (and AsyncLocalT) after yield return. Microsoft.Extension.Logging depends on that for scoped logging.
See Also