private void StartConnect() { if (_instanceContext != null) { _transporter.GetDuplexChannelAsync <TContract>(_instanceContext, null); } else { _transporter.GetChannelAsync <TContract>(null); } }