// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+using System.Collections.Generic;
namespace System.Diagnostics.Tracing
{
public class EventSource : IDisposable
{
+ protected internal struct EventData
+ {
+ public IntPtr DataPointer { get; set; }
+ public int Size { get; set; }
+ }
+
protected EventSource ()
{
this.Name = this.GetType().Name;
{
}
+ ~EventSource ()
+ {
+ Dispose (false);
+ }
+
public Exception ConstructionException
{
get { return null; }
public void Dispose ()
{
Dispose (true);
+ GC.SuppressFinalize (this);
}
public string GetTrait (string key)
{
}
+ public void Write (string eventName, EventSourceOptions options)
+ {
+ }
+
public void Write<T> (string eventName, T data)
{
}
{
}
+ [CLSCompliant (false)]
public void Write<T> (string eventName, ref EventSourceOptions options, ref T data)
{
}
{
WriteEvent (eventId, new object[] { arg1, arg2, arg3 } );
}
+
+ [CLSCompliant (false)]
+ protected unsafe void WriteEventCore (int eventId, int eventDataCount, EventData* data)
+ {
+ }
+
+ protected unsafe void WriteEventWithRelatedActivityId (int eventId, Guid relatedActivityId, params object[] args)
+ {
+ }
+
+ [CLSCompliant (false)]
+ protected unsafe void WriteEventWithRelatedActivityIdCore (int eventId, Guid* relatedActivityId, int eventDataCount, EventSource.EventData* data)
+ {
+ }
+
+#if NETSTANDARD
+ [MonoTODO]
+ public event EventHandler<EventCommandEventArgs> EventCommandExecuted
+ {
+ add { throw new NotImplementedException (); }
+ remove { throw new NotImplementedException (); }
+ }
+#endif
+
+ [MonoTODO]
+ public static string GenerateManifest (Type eventSourceType, string assemblyPathToIncludeInManifest)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static string GenerateManifest (Type eventSourceType, string assemblyPathToIncludeInManifest, EventManifestOptions flags)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static Guid GetGuid (Type eventSourceType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static string GetName (Type eventSourceType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static IEnumerable<EventSource> GetSources ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static void SendCommand (EventSource eventSource, EventCommand command, IDictionary<string, string> commandArguments)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static void SetCurrentThreadActivityId (Guid activityId)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static void SetCurrentThreadActivityId (Guid activityId, out Guid oldActivityThatWillContinue)
+ {
+ throw new NotImplementedException ();
+ }
}
}