ActivitySource Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides APIs to create and start Activity objects and to register ActivityListener objects to listen to the Activity events.
public ref class ActivitySource sealed : IDisposable
public sealed class ActivitySource : IDisposable
type ActivitySource = class
interface IDisposable
Public NotInheritable Class ActivitySource
Implements IDisposable
- Inheritance
-
ActivitySource
- Implements
Activity |
|
Activity |
Constructs an activity source object with the specified |
Activity |
Add |
Adds a listener to the activity starting and stopping events. |
Create |
Creates a new Activity object if there is any listener to the Activity, returns |
Create |
Creates a new Activity object if there is any listener to the Activity, returns |
Create |
Creates a new Activity object if there is any listener to the Activity, returns |
Dispose() |
Disposes the activity source object, removes the current instance from the global list, and empties the listeners list. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Has |
Checks if there are any listeners for this activity source. |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Start |
Creates and starts a new Activity object if there is any listener to the Activity events, returns |
Start |
Creates and starts a new activity if there are active listeners for it, using the specified name, activity kind, parent activity context, tags, optional activity link and optional start time. |
Start |
Creates and starts a new activity if there are active listeners for it, using the specified name, activity kind, parent Id, tags, optional activity links and optional start time. |
Start |
Creates and starts a new activity if there are active listeners for it, using the specified name and activity kind. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Prodotto | Versioni |
---|---|
.NET | 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: