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

ILogger.OpenActivity Method

OpenActivity(LogActivityOptions, ref CallerInfo)

Opens an activity.

Declaration
ILoggingContext OpenActivity(LogActivityOptions options, ref CallerInfo callerInfo)
Parameters
Type Name Description
LogActivityOptions options

Options.

CallerInfo callerInfo

Information about the caller source code.

Returns
Type Description
ILoggingContext

An ILoggingContext representing the new activity.