public void DeclareExchangeAndUseIt()
        {
            var channel = this.Connection.CreateChannel(withConfirmation: true);

            var exchange = channel.DeclareExchange("my9exchange", new ExchangeOptions()
            {
                // using default options = ephemeral
            });

            var msg = new MyDumbMessage();
            exchange.Send(msg, confirmationCallback: () =>
            {
                
            }); // message will be dropped
        }
Exemple #2
0
        public void DeclareExchangeAndUseIt()
        {
            var channel = this.Connection.CreateChannel(withConfirmation: true);

            var exchange = channel.DeclareExchange("my9exchange", new ExchangeOptions()
            {
                // using default options = ephemeral
            });

            var msg = new MyDumbMessage();

            exchange.Send(msg, confirmationCallback: () =>
            {
            }); // message will be dropped
        }