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.

void SuspendActivity(ILoggingContext context, ref CallerInfo callerInfo)
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.