Skip to content

VitreousContext class

Namespace: Vitreous
Assembly: Vitreous.dll

Provides ambient access to the PipelineAnnotations for the current async message dispatch. Scoped to the async execution context — safe across await.

public static class VitreousContext

object ← VitreousContext

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

The annotations bag for the in-flight dispatch, or null when called outside a dispatch (e.g. background threads, startup code).

public static PipelineAnnotations? Current { get; set; }

PipelineAnnotations?