ActivityListener
ActivityListener allows listening to the start and stop Activity events and give the oppertunity to decide creating the Activity for sampling scenarios.
Set or get the callback used to listen to the Activity start event.
Set or get the callback used to listen to the Activity stop event.
Set or get the callback used to decide allowing creating Activity objects with specific data state.
Set or get the callback used to decide allowing creating Activity objects with specific data state.
Set or get the callback used to decide if want to listen to Activity objects events which created using ActivitySource object.
public ActivityListener()
Construct a new ActivityListener object to start listening to the Activity events.
Dispose will unregister this ActivityListener object from listening to Activity events.