ActivityContext Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A representation that conforms to the W3C TraceContext specification. It contains two identifiers: a TraceId and a SpanId, along with a set of common TraceFlags and system-specific TraceState values.
public value class ActivityContext : IEquatable<System::Diagnostics::ActivityContext>
public readonly struct ActivityContext : IEquatable<System.Diagnostics.ActivityContext>
type ActivityContext = struct
Public Structure ActivityContext
Implements IEquatable(Of ActivityContext)
- Inheritance
- Implements
ActivityContext contains the property IsRemote
, which is not part of W3C. IsRemote
is indicating if the context is propagated from a remote parent.
Activity |
Construct a new activity context instance using the specified arguments. |
Is |
Indicates if the activity context was propagated from a remote parent. |
Span |
The Id of the request as known by the caller. |
Trace |
The flags defined by the W3C standard along with the ID for the activity. |
Trace |
The trace identifier. |
Trace |
Holds the W3C 'tracestate' header. |
Equals(Activity |
Indicates whether the current object is equal to another object of the same type. |
Equals(Object) |
Determines whether this instance and a specified |
Get |
Provides a hash function for the current |
Parse(String, String) |
Parses a W3C trace context headers to an ActivityContext object. |
Try |
Tries to parse the W3C trace context headers to an ActivityContext object. |
Try |
Tries to parse the W3C trace context headers to the ActivityContext object. |
Equality(Activity |
Determines whether two specified |
Inequality(Activity |
Determines whether two specified |
Produkt | Versioner |
---|---|
.NET | 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided) |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: