Пример #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);
        }