PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / IContext­Local­Logger Interface / IContext­Local­Logger Methods / IContext­Local­Logger.​Suspend­Activity Method

IContextLocalLogger.SuspendActivity Method

Suspends an asynchronous activity, which can then be resumed by the ResumeActivity(ILoggingContext, CallerInfo) method.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
void SuspendActivity(
	ILoggingContext context,
	ref CallerInfo callerInfo
)

Parameters

context
Type: PostSharp.Patterns.Diagnostics.Contexts.ILoggingContext
A context representing an asynchronous custom activity, created by OpenActivity(OpenActivityOptions, CallerInfo).
callerInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CallerInfo
Information about the caller code.
See Also