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