public override AsyncCompletionResult BeginRead(int offset, int size, TimeSpan timeout, System.Threading.WaitCallback callback, object state) { using (ServiceModelActivity.BoundOperation(this.activity)) { TracingConnectionState completion = new TracingConnectionState(callback, this.activity, state); return(base.BeginRead(offset, size, timeout, TracingConnection.Callback, completion)); } }
public override AsyncReadResult BeginRead(int offset, int size, TimeSpan timeout, System.Threading.WaitCallback callback, object state) { using (ServiceModelActivity.BoundOperation(this.activity)) { TracingConnectionState state2 = new TracingConnectionState(callback, this.activity, state); return base.BeginRead(offset, size, timeout, Callback, state2); } }
static void WaitCallback(object state) { TracingConnectionState tracingData = (TracingConnectionState)state; tracingData.ExecuteCallback(); }