PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomILoggerSuspend­Activity
Open sandboxFocus

Method SuspendActivity

SuspendActivity(ILoggingContext, ref CallerInfo)

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

Declaration
void SuspendActivity(ILoggingContext context, ref CallerInfo callerInfo)
Parameters
Type Name Description
ILoggingContext context

A context representing an asynchronous custom activity, created by OpenActivity(LogActivityOptions, ref CallerInfo).

CallerInfo callerInfo

Information about the caller source code.