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.​Close­Activity Method

IDiagnosticSourceActivityFilter.CloseActivity Method

Method called by DiagnosticSourceCollectingListener when a message suffixed .Start is captured. Should close the activity.

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#
void CloseActivity(
	ILogActivity activity,
	Object message
)

Parameters

activity
Type: PostSharp.Patterns.Diagnostics.ILogActivity
message
Type: System.Object
See Also