| DefaultDiagnosticTracer Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: Autofac.Diagnostics
 Syntax
SyntaxThe DefaultDiagnosticTracer type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | DefaultDiagnosticTracer | 
            Initializes a new instance of the DefaultDiagnosticTracer class.
             | 
 Properties
Properties| Name | Description | |
|---|---|---|
|  | OperationsInProgress | 
            Gets the number of operations in progress being traced.
            (Overrides OperationDiagnosticTracerBaseTContentOperationsInProgress.) | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | Disable | 
            Unsubscribes the observer from a particular named diagnostic event.
            (Inherited from OperationDiagnosticTracerBaseTContent.) | 
|  | DisableBase | 
            Unsubscribes the observer from a particular named diagnostic event.
            (Inherited from DiagnosticTracerBase.) | 
|  | Enable | 
            Subscribes the observer to a particular named diagnostic event.
            (Inherited from OperationDiagnosticTracerBaseTContent.) | 
|  | EnableAll | 
            Subscribes the observer to all Autofac events.
            (Inherited from DiagnosticTracerBase.) | 
|  | EnableBase | 
            Subscribes the observer to a particular named diagnostic event.
            (Inherited from DiagnosticTracerBase.) | 
|  | Equals | Determines whether the specified object is equal to the current object.(Inherited from Object.) | 
|  | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) | 
|  | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
|  | GetType | Gets the Type of the current instance.(Inherited from Object.) | 
|  | IsEnabled | 
            Determines if this observer is enabled for listening to a specific
            named event.
            (Inherited from DiagnosticTracerBase.) | 
|  | MemberwiseClone | Creates a shallow copy of the current Object.(Inherited from Object.) | 
|  | OnMiddlewareFailure | 
            Handles the event raised when middleware encounters an error.
            (Overrides DiagnosticTracerBaseOnMiddlewareFailure(MiddlewareDiagnosticData).) | 
|  | OnMiddlewareStart | 
            Handles the event raised when middleware starts.
            (Overrides DiagnosticTracerBaseOnMiddlewareStart(MiddlewareDiagnosticData).) | 
|  | OnMiddlewareSuccess | 
            Handles the event raised when middleware exits successfully.
            (Overrides DiagnosticTracerBaseOnMiddlewareSuccess(MiddlewareDiagnosticData).) | 
|  | OnOperationCompleted | 
            Invokes the OperationCompleted event.
            (Inherited from OperationDiagnosticTracerBaseTContent.) | 
|  | OnOperationFailure | 
            Handles the event raised when a resolve operation encounters an error.
            (Overrides DiagnosticTracerBaseOnOperationFailure(OperationFailureDiagnosticData).) | 
|  | OnOperationStart | 
            Handles the event raised when a resolve operation starts.
            (Overrides DiagnosticTracerBaseOnOperationStart(OperationStartDiagnosticData).) | 
|  | OnOperationSuccess | 
            Handles the event raised when a resolve operation completes successfully.
            (Overrides DiagnosticTracerBaseOnOperationSuccess(OperationSuccessDiagnosticData).) | 
|  | OnRequestFailure | 
            Handles the event raised when a resolve request encounters an error.
            (Overrides DiagnosticTracerBaseOnRequestFailure(RequestFailureDiagnosticData).) | 
|  | OnRequestStart | 
            Handles the event raised when a resolve request starts.
            (Overrides DiagnosticTracerBaseOnRequestStart(RequestDiagnosticData).) | 
|  | OnRequestSuccess | 
            Handles the event raised when a resolve request completes successfully.
            (Overrides DiagnosticTracerBaseOnRequestSuccess(RequestDiagnosticData).) | 
|  | ToString | Returns a string that represents the current object.(Inherited from Object.) | 
|  | Write | 
            Handles inbound events and converts the diagnostic data to a
            strongly-typed object that can be handled by the other methods
            in this observer.
            (Inherited from DiagnosticTracerBase.) | 
 Events
Events| Name | Description | |
|---|---|---|
|  | OperationCompleted | 
            Event raised when a resolve operation completes and trace data is available.
            (Inherited from OperationDiagnosticTracerBaseTContent.) | 
 Explicit Interface Implementations
Explicit Interface Implementations| Name | Description | |
|---|---|---|
|   | IObserverKeyValuePairString, ObjectOnCompleted | Notifies the observer that the provider has finished sending push-based notifications.(Inherited from DiagnosticTracerBase.) | 
|   | IObserverKeyValuePairString, ObjectOnError | Notifies the observer that the provider has experienced an error condition.(Inherited from DiagnosticTracerBase.) | 
|   | IObserverKeyValuePairString, ObjectOnNext | Provides the observer with new data.(Inherited from DiagnosticTracerBase.) | 
 Remarks
RemarksThe tracer subscribes to all Autofac diagnostic events and can't be unsubscribed. This is required to ensure beginning and end of each logical activity can be captured.
 See Also
See Also