Starts an Activity and writes a start event.
public:
System::Diagnostics::Activity ^ StartActivity(System::Diagnostics::Activity ^ activity, System::Object ^ args);
public System.Diagnostics.Activity StartActivity(System.Diagnostics.Activity activity, object? args);
public System.Diagnostics.Activity StartActivity(System.Diagnostics.Activity activity, object args);
member this.StartActivity : System.Diagnostics.Activity * obj -> System.Diagnostics.Activity
Public Function StartActivity (activity As Activity, args As Object) As Activity
Parameters
An object that represent the value being passed as a payload for the event.
ReturnsThe started activity for convenient chaining.
RemarksThe Activity describes the logical operation, its context, and parent relation; the current Activity flows through the operation processing.
This method starts the given Activity, maintains a global Activity.Current and Activity.Parent activity for the given Activity, and notifies consumers that a new Activity was started. Consumers can access Activity.Current to add context and/or augment telemetry.
Producers may pass additional details to the consumer in the payload.
StartActivity<T>(Activity, T)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 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