Click or drag to resize

OperationDiagnosticTracerBaseTContent Class

Base class for tracers that require all operations for logical operation tracing.
Inheritance Hierarchy
SystemObject
  Autofac.DiagnosticsDiagnosticTracerBase
    Autofac.DiagnosticsOperationDiagnosticTracerBaseTContent
      Autofac.DiagnosticsDefaultDiagnosticTracer
      Autofac.Diagnostics.DotGraphDotDiagnosticTracer

Namespace:  Autofac.Diagnostics
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public abstract class OperationDiagnosticTracerBase<TContent> : DiagnosticTracerBase

Type Parameters

TContent
The type of content generated by the trace at the end of the operation.

The OperationDiagnosticTracerBaseTContent type exposes the following members.

Constructors
  NameDescription
Protected methodOperationDiagnosticTracerBaseTContent
Initializes a new instance of the OperationDiagnosticTracerBaseTContent class and enables all subscriptions.
Protected methodOperationDiagnosticTracerBaseTContent(IEnumerableString)
Initializes a new instance of the OperationDiagnosticTracerBaseTContent class and enables a specified set of subscriptions.
Top
Properties
  NameDescription
Public propertyOperationsInProgress
Gets the number of operations in progress being traced.
Top
Methods
  NameDescription
Public methodDisable
Unsubscribes the observer from a particular named diagnostic event.
(Overrides DiagnosticTracerBaseDisable(String).)
Protected methodDisableBase
Unsubscribes the observer from a particular named diagnostic event.
(Inherited from DiagnosticTracerBase.)
Public methodEnable
Subscribes the observer to a particular named diagnostic event.
(Overrides DiagnosticTracerBaseEnable(String).)
Public methodEnableAll
Subscribes the observer to all Autofac events.
(Inherited from DiagnosticTracerBase.)
Protected methodEnableBase
Subscribes the observer to a particular named diagnostic event.
(Inherited from DiagnosticTracerBase.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsEnabled
Determines if this observer is enabled for listening to a specific named event.
(Inherited from DiagnosticTracerBase.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnMiddlewareFailure
Handles the event raised when middleware encounters an error.
(Inherited from DiagnosticTracerBase.)
Protected methodOnMiddlewareStart
Handles the event raised when middleware starts.
(Inherited from DiagnosticTracerBase.)
Protected methodOnMiddlewareSuccess
Handles the event raised when middleware exits successfully.
(Inherited from DiagnosticTracerBase.)
Protected methodOnOperationCompleted
Invokes the OperationCompleted event.
Protected methodOnOperationFailure
Handles the event raised when a resolve operation encounters an error.
(Inherited from DiagnosticTracerBase.)
Protected methodOnOperationStart
Handles the event raised when a resolve operation starts.
(Inherited from DiagnosticTracerBase.)
Protected methodOnOperationSuccess
Handles the event raised when a resolve operation completes successfully.
(Inherited from DiagnosticTracerBase.)
Protected methodOnRequestFailure
Handles the event raised when a resolve request encounters an error.
(Inherited from DiagnosticTracerBase.)
Protected methodOnRequestStart
Handles the event raised when a resolve request starts.
(Inherited from DiagnosticTracerBase.)
Protected methodOnRequestSuccess
Handles the event raised when a resolve request completes successfully.
(Inherited from DiagnosticTracerBase.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodWrite
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.)
Top
Events
  NameDescription
Public eventOperationCompleted
Event raised when a resolve operation completes and trace data is available.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIObserverKeyValuePairString, ObjectOnCompleted
Notifies the observer that the provider has finished sending push-based notifications.
(Inherited from DiagnosticTracerBase.)
Explicit interface implementationPrivate methodIObserverKeyValuePairString, ObjectOnError
Notifies the observer that the provider has experienced an error condition.
(Inherited from DiagnosticTracerBase.)
Explicit interface implementationPrivate methodIObserverKeyValuePairString, ObjectOnNext
Provides the observer with new data.
(Inherited from DiagnosticTracerBase.)
Top
Remarks

Derived classes will be subscribed to all Autofac diagnostic events and will raise an OperationCompleted event when a logical operation has finished and trace data is available.

See Also