PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Adapters.​Diagnostic­SourceDiagnostic­Source­Collecting­ListenerFollow­Activity
Open sandboxFocus

DiagnosticSourceCollectingListener.FollowActivity Method

FollowActivity(String, IDiagnosticSourceActivityFilter)

Follows a specific activity.

Declaration
public void FollowActivity([Required] string activityName, IDiagnosticSourceActivityFilter filter = null)
Parameters
Type Name Description
System.String activityName

Name of the activity to follow.

IDiagnosticSourceActivityFilter filter

Determines how a DiagnosticListener activity must be translated into a PostSharp Logging activity. This parameter is mandatory under .NET Framework because there is no way to automatically implement the TryGetCorrelationKey(Object, out Object) method. It is optional under .NET Core.