Ejemplo n.º 1
0
 /// <summary>
 /// Wraps a callback with no params
 /// </summary>
 /// <param name="callback"></param>
 /// <returns></returns>
 public CallbackNoParameter Correlate(CallbackNoParameter callback)
 {
     if (callback == null)
     {
         throw new ArgumentNullException("callback");
     }
     return(new CorrelatedCallback(this, callback).Callback);
 }
Ejemplo n.º 2
0
 public CallbackNoParameter Correlate(CallbackNoParameter callback)
 {
     if (callback == null)
     {
         throw new ArgumentNullException("callback");
     }
     return new CallbackNoParameter(new CorrelatedCallback(this, callback).Callback);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// EtwCorrelator Constructor
 /// </summary>
 /// <param name="tracer"></param>
 /// <param name="callback"></param>
 public CorrelatedCallback(EtwActivity tracer, CallbackNoParameter callback)
 {
     if (callback == null)
     {
         throw new ArgumentNullException("callback");
     }
     if (tracer == null)
     {
         throw new ArgumentNullException("tracer");
     }
     this.tracer           = tracer;
     this.parentActivityId = EtwActivity.GetActivityId();
     this.callbackNoParam  = callback;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// EtwCorrelator Constructor
 /// </summary>
 /// <param name="tracer"></param>
 /// <param name="callback"></param>
 public CorrelatedCallback(EtwActivity tracer, CallbackNoParameter callback)
 {
     if (callback == null)
     {
         throw new ArgumentNullException("callback");
     }
     if (tracer == null)
     {
         throw new ArgumentNullException("tracer");
     }
     this.tracer = tracer;
     this.parentActivityId = EtwActivity.GetActivityId();
     this.callbackNoParam = callback;
 }