public void Connect() { SetState(ConnectionState.CONNECTING); _timers = new TimersMap(this, _client, RESEND_PERIOND); _timers.StopAllTimers(); _timers.StoreConnectTimer(); AMQPProtoHeader header = new AMQPProtoHeader(3); _client.Send(header); }
public void ProcessClose() { if (_timers != null) { _timers.Remove(-2); } _timers = null; if (_client.IsConnected()) { _client.Close(); } SetState(ConnectionState.NONE); return; }