Using operation context
Last updated
Last updated
This page lists preparation steps required to begin using in application logs.
Prerequisites: install , read section.
Step 1: enable operation context on a log instance using WithOperationContext()
extension:
Step 2: define context scopes by constructing and disposing OperationContextToken
s:
There's also an ILog
extension named ForOperationContext
which is just a convenient shortcut for creating OperationContextToken
s and does not really depend on an ILog
instance: