EtwActivity Class
Definition
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.
public ref class EtwActivity abstract
public abstract class EtwActivity
type EtwActivity = class
Public MustInherit Class EtwActivity
- Inheritance
-
EtwActivity
- Derived
Constructors
EtwActivity() |
Constructor. |
Properties
IsEnabled |
IsEnabled |
ProviderId |
The provider where the tracing messages will be written to. |
TransferEvent |
The event that is defined to be used to log transfer event. The derived class must override this property if they don't want to use the PowerShell's transfer event. |
Methods
Correlate() |
Correlates parent activity id set in the thread with a new activity id If parent activity id is not, it just sets a new activity in the current thread. And does not write the Transfer event |
Correlate(AsyncCallback) |
Wraps a AsyncCallback with IAsyncResult param |
Correlate(CallbackNoParameter) |
Wraps a callback with no params |
Correlate(CallbackWithState) |
Wraps a callback with one object param |
Correlate(CallbackWithStateAndArgs) |
Wraps a callback with one object param and one ElapsedEventArgs object This is menat to be used in System.Timers.Timer scenarios. |
CorrelateWithActivity(Guid) |
CorrelateWithActivity (EventId: 0x1f05/7941) This method also sets a new activity id in current thread. And then correlates the new id with parentActivityId |
CreateActivityId() | |
GetActivityId() | |
IsProviderEnabled(Byte, Int64) |
Checks whether a provider matching certain levels and keyword is enabled |
SetActivityId(Guid) | |
WriteEvent(EventDescriptor, Object[]) |
This is the main method that write the messages to the trace. All derived classes must use this method to write to the provider log. |
Events
EventWritten |
Event handler for the class |