TryGetCorrelationKey(object, out object)
This method is called by DiagnosticSourceCollectingListener when a message suffixed .Start or .Stop is captured. The implementation
must return the correlation object, that is, a property of the message that is identical for both the start and the stop messages. This correlation key
makes it possible to pair the messages as a single activity. When the implementation returns null, no activity is created.
Declaration
bool TryGetCorrelationKey(object message, out object correlationKey)Parameters
| Type | Name | Description |
|---|---|---|
| object | message | The message value. |
| object | correlationKey | The output parameter that receives the correlation key. |
Returns
| Type | Description |
|---|---|
| bool |
|