PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Diagnostic­Source Namespace / IDiagnostic­Source­Activity­Filter Interface / IDiagnostic­Source­Activity­Filter Methods / IDiagnostic­Source­Activity­Filter.​Open­Activity Method

IDiagnosticSourceActivityFilter.OpenActivity Method

Method called by DiagnosticSourceCollectingListener when a message suffixed .Start is captured. Should open an activity and return it.

Namespace:  PostSharp.Patterns.Diagnostics.Adapters.DiagnosticSource
Assembly:  PostSharp.Patterns.Diagnostics.Adapters.DiagnosticSource (in PostSharp.Patterns.Diagnostics.Adapters.DiagnosticSource.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
ILogActivity OpenActivity(
	LogLevelSource logSource,
	string activityName,
	ref CallerInfo callerInfo,
	Object message
)

Parameters

logSource
Type: PostSharp.Patterns.Diagnostics.Custom.LogLevelSource
activityName
Type: System.String
callerInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CallerInfo
The output value is ignored.
message
Type: System.Object

Return Value

Type: ILogActivity
See Also