Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​Diagnostics.​ActivityLink
Assembly: System.Diagnostics.DiagnosticSource
Implemented Interfaces
Activities may be linked to zero or more activity context instances that are causally related. Activity links can point to activity contexts inside a single trace or across different traces. Activity links can be used to represent batched operations where an activity was initiated by multiple initiating activities, each representing a single incoming item being processed in the batch.
Properties
public
ActivityContext
Context
Retrieves the activity context inside this activity link.
public
Collections.​Generic.​IEnumerable<​Collections.​Generic.​KeyValuePair<​string, object>>
Tags
Retrieves the key-value pair enumeration of tags attached to the activity context.
Methods
public
bool
Equals​(object obj)
Indicates whether the current activity link is equal to another object.
Returns <see langword="true" /> if the current activity link is equal to <paramref name="obj" /> ; otherwise, <see langword="false" /> .
obj
The object to compare.
public
bool
Equals​(ActivityLink value)
Indicates whether the current activity link is equal to another activity link.
Returns <see langword="true" /> if the current activity link is equal to <paramref name="value" /> ; otherwise, <see langword="false" /> .
value
The activity link to compare.
public
int
GetHashCode​()
Provides a hash function for the current <see langword="ActivityLink" /> that's suitable for hashing algorithms and data structures, such as hash tables.
Returns A hash code for the current <see langword="ActivityLink" /> .
public
Enumerator<​Collections.​Generic.​KeyValuePair<​string, object>>
EnumerateTagObjects​()
Enumerate the tags attached to this <see cref="T:System.Diagnostics.ActivityLink" /> object.
Returns <see cref="T:System.Diagnostics.Activity.Enumerator`1" /> .
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object