System.Diagnostics.Tracing.EventSource
namespace System.Diagnostics.Tracing
{
public class EventSource : IDisposable
{
public Exception ConstructionException { get; }
public static Guid CurrentThreadActivityId { get; }
public Guid Guid { get; }
public string Name { get; }
public EventSourceSettings Settings { get; }
public event EventHandler<EventCommandEventArgs> EventCommandExecuted;
protected EventSource();
protected EventSource(bool throwOnEventWriteErrors);
protected EventSource(EventSourceSettings settings);
protected EventSource(EventSourceSettings settings, params string[] traits);
public EventSource(string eventSourceName);
public EventSource(string eventSourceName, EventSourceSettings config);
public EventSource(string eventSourceName, EventSourceSettings config, params string[] traits);
public void Dispose();
protected virtual void Dispose(bool disposing);
public static string GenerateManifest(Type eventSourceType, string assemblyPathToIncludeInManifest);
public static string GenerateManifest(Type eventSourceType, string assemblyPathToIncludeInManifest, EventManifestOptions flags);
public static Guid GetGuid(Type eventSourceType);
public static string GetName(Type eventSourceType);
public static IEnumerable<EventSource> GetSources();
public string GetTrait(string key);
public bool IsEnabled();
public bool IsEnabled(EventLevel level, EventKeywords keywords);
public bool IsEnabled(EventLevel level, EventKeywords keywords, EventChannel channel);
protected virtual void OnEventCommand(EventCommandEventArgs command);
public static void SendCommand(EventSource eventSource, EventCommand command, IDictionary<string, string> commandArguments);
public static void SetCurrentThreadActivityId(Guid activityId);
public static void SetCurrentThreadActivityId(Guid activityId, out Guid oldActivityThatWillContinue);
public void Write(string eventName);
public void Write(string eventName, EventSourceOptions options);
public void Write<T>(string eventName, T data);
public void Write<T>(string eventName, EventSourceOptions options, T data);
public void Write<T>(string eventName, ref EventSourceOptions options, ref T data);
public void Write<T>(string eventName, ref EventSourceOptions options, ref Guid activityId, ref Guid relatedActivityId, ref T data);
protected void WriteEvent(int eventId);
protected void WriteEvent(int eventId, byte[] arg1);
protected void WriteEvent(int eventId, int arg1);
protected void WriteEvent(int eventId, int arg1, int arg2);
protected void WriteEvent(int eventId, int arg1, int arg2, int arg3);
protected void WriteEvent(int eventId, int arg1, string arg2);
protected void WriteEvent(int eventId, long arg1);
protected void WriteEvent(int eventId, long arg1, byte[] arg2);
protected void WriteEvent(int eventId, long arg1, long arg2);
protected void WriteEvent(int eventId, long arg1, long arg2, long arg3);
protected void WriteEvent(int eventId, long arg1, string arg2);
protected void WriteEvent(int eventId, params object[] args);
protected void WriteEvent(int eventId, string arg1);
protected void WriteEvent(int eventId, string arg1, int arg2);
protected void WriteEvent(int eventId, string arg1, int arg2, int arg3);
protected void WriteEvent(int eventId, string arg1, long arg2);
protected void WriteEvent(int eventId, string arg1, string arg2);
protected void WriteEvent(int eventId, string arg1, string arg2, string arg3);
protected unsafe void WriteEventCore(int eventId, int eventDataCount, EventData* data);
protected void WriteEventWithRelatedActivityId(int eventId, Guid relatedActivityId, params object[] args);
protected unsafe void WriteEventWithRelatedActivityIdCore(int eventId, Guid* relatedActivityId, int eventDataCount, EventData* data);
}
}