Partager via


CallContext Class

Definition

An opaque context used to store work when working with authentication artifacts.

public class CallContext : Microsoft.IdentityModel.Logging.LoggerContext
type CallContext = class
    inherit LoggerContext
Public Class CallContext
Inherits LoggerContext
Inheritance
CallContext
Derived

Constructors

CallContext()

Instantiates a new CallContext with a default activity identifier.

CallContext(Guid)

Instantiates a new CallContext with an activity identifier.

Properties

ActivityId

Gets or set a Guid that will be used in the call to EventSource.SetCurrentThreadActivityId before logging.

(Inherited from LoggerContext)
CaptureLogs

Gets or sets a boolean controlling if logs are written into the context. Useful when debugging.

(Inherited from LoggerContext)
DebugId

Gets or sets a string that helps with setting breakpoints when debugging.

(Inherited from LoggerContext)
Logs

The collection of logs associated with a request. Use CaptureLogs to control capture.

(Inherited from LoggerContext)
PropertyBag

Gets or sets an IDictionary<TKey,TValue> that enables custom extensibility scenarios.

(Inherited from LoggerContext)

Applies to