private static unsafe uint TraceTransfer(Guid activityId, Guid relatedId)
 {
     uint maxValue = uint.MaxValue;
     if ((Provider != null) && Provider.ShouldTrace)
     {
         Guid2Event event2 = new Guid2Event();
         event2.Header.Guid = WsatTraceGuid;
         event2.Header.Type = 5;
         event2.Header.ClientContext = 0;
         event2.Header.Flags = 0x20000;
         event2.Header.BufferSize = 80;
         event2.Guid1 = activityId;
         event2.Guid2 = relatedId;
         if (Provider != null)
         {
             maxValue = provider.Trace((MofEvent*) &event2);
         }
     }
     return maxValue;
 }
Esempio n. 2
0
        private static unsafe uint TraceTransfer(Guid activityId, Guid relatedId)
        {
            uint maxValue = uint.MaxValue;

            if ((Provider != null) && Provider.ShouldTrace)
            {
                Guid2Event event2 = new Guid2Event();
                event2.Header.Guid          = WsatTraceGuid;
                event2.Header.Type          = 5;
                event2.Header.ClientContext = 0;
                event2.Header.Flags         = 0x20000;
                event2.Header.BufferSize    = 80;
                event2.Guid1 = activityId;
                event2.Guid2 = relatedId;
                if (Provider != null)
                {
                    maxValue = provider.Trace((MofEvent *)&event2);
                }
            }
            return(maxValue);
        }