Skip to content

PipelineAnnotations class

Namespace: Vitreous
Assembly: Vitreous.dll

Mutable bag of annotations written by pipeline behaviors during a single dispatch. Current holds the instance for the current async call chain.

public sealed class PipelineAnnotations

object ← PipelineAnnotations

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

Behaviors set properties on this object; outer behaviors (e.g. tracing) read them after next() returns. Because it is a reference type stored in an AsyncLocal<T>, mutations are visible across the async call chain without needing to propagate values back up through return values.

Set to true by the caching behavior when the result was served from cache rather than from the handler. Always false when the caching package is not in use.

public bool IsCacheHit { get; set; }

bool