Esempio n. 1
0
        private RabbitMQConnect CreateConnect()
        {
            var conn = new RabbitMQConnect(_connectionFactory);

            conn.Connection.CallbackException       += Connection_CallbackException;
            conn.Connection.ConnectionBlocked       += Connection_ConnectionBlocked;
            conn.Connection.ConnectionRecoveryError += Connection_ConnectionRecoveryError;
            conn.Connection.ConnectionShutdown      += Connection_ConnectionShutdown;
            conn.Connection.ConnectionUnblocked     += Connection_ConnectionUnblocked;
            conn.Connection.RecoverySucceeded       += Connection_RecoverySucceeded;
            return(conn);
        }
Esempio n. 2
0
 public RabbitMQChanl(RabbitMQConnect rabbitMQConnect)
 {
     _rabbitMQConnect = rabbitMQConnect;
     IChannl          = _rabbitMQConnect.Connection.CreateModel();
 }