Allows listening to the start and stop activity events and gives the opportunity to decide creating an activity for sampling scenarios.
public ref class ActivityListener sealed : IDisposable
public sealed class ActivityListener : IDisposable
type ActivityListener = class
interface IDisposable
Public NotInheritable Class ActivityListener
Implements IDisposable
Construct a new activity listener object to start listening to the activity events.
Properties ActivityStartedGets or sets the callback used to listen to the activity start event.
ActivityStoppedGets or sets the callback used to listen to the activity stop event.
ExceptionRecorder SampleGets or sets the callback that is used to decide if creating Activity objects with a specific data state is allowed.
SampleUsingParentIdGets or sets the callback that is used to decide if creating Activity objects with a specific data state is allowed.
ShouldListenToGets or sets the callback that allows deciding if activity object events that were created using the activity source object should be listened or not.
MethodsCollaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4