Click or drag to resize

DiagnosticTracerBaseEnable Method

Subscribes the observer to a particular named diagnostic event.

Namespace:  Autofac.Diagnostics
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public virtual void Enable(
	string diagnosticName
)

Parameters

diagnosticName
Type: SystemString
The name of the event to which the observer should subscribe. Diagnostic names are case-sensitive.
Remarks

By default the observer is not subscribed to any events. You must opt-in to any events you wish to handle. You may use EnableAll to subscribe to all Autofac events at once.

See Also