PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLogging­BackendOpen­Async­Context
Open sandboxFocus

LoggingBackend.OpenAsyncContext Method

OpenAsyncContext(AsyncCallId, ref LogMemberInfo)

Gets an AsyncMethodLoggingContext for a given async method.

Declaration
public AsyncMethodLoggingContext OpenAsyncContext(AsyncCallId asyncCallId, ref LogMemberInfo logMemberInfo)
Parameters
Type Name Description
AsyncCallId asyncCallId

The System.Threading.Tasks.Task associated to the async method being logged, or null if the System.Threading.Tasks.Task cannot be determined.

LogMemberInfo logMemberInfo

A reference to a LogMemberInfo describing the method being logged.

Returns
Type Description
AsyncMethodLoggingContext

An AsyncMethodLoggingContext for logMemberInfo.