A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.activitylistener below:

ActivityListener Class (System.Diagnostics) | Microsoft Learn

ActivityListener Class Definition

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
Inheritance
Implements
Constructors ActivityListener()

Construct a new activity listener object to start listening to the activity events.

Properties ActivityStarted

Gets or sets the callback used to listen to the activity start event.

ActivityStopped

Gets or sets the callback used to listen to the activity stop event.

ExceptionRecorder Sample

Gets or sets the callback that is used to decide if creating Activity objects with a specific data state is allowed.

SampleUsingParentId

Gets or sets the callback that is used to decide if creating Activity objects with a specific data state is allowed.

ShouldListenTo

Gets or sets the callback that allows deciding if activity object events that were created using the activity source object should be listened or not.

Methods

Collaborate 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 article

Was 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