Example #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);
 }
Example #2
0
 public CallbackNoParameter Correlate(CallbackNoParameter callback)
 {
     if (callback == null)
     {
         throw new ArgumentNullException("callback");
     }
     return new CallbackNoParameter(new CorrelatedCallback(this, callback).Callback);
 }
Example #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;
 }
Example #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;
 }