public void AttachTracer(IFrameTracer tracer) { if (tracer == null) { throw new ArgumentNullException(nameof(tracer)); } if (State != ConnectionState.Initializing) { throw new InvalidOperationException("Connection is not in state 'Initializing'"); } Pump.AttachTracer(tracer); }