Esempio n. 1
0
        internal unsafe uint Trace(MofEvent *evt)
        {
            bool shouldRedispose = this.isDisposed;

            if (shouldRedispose)
            {
                this.Initialize(this.controlGuid);
            }
            uint retval = EtwNativeMethods.TraceEvent(traceHandle, (char *)evt);

            if (shouldRedispose)
            {
                this.Dispose(true);
            }
            return(retval);
        }
 internal unsafe uint Trace(MofEvent *evt)
 {
     return(EtwNativeMethods.TraceEvent(this.traceHandle, (char *)evt));
 }