Ejemplo n.º 1
0
        public override void Apply()
        {
            Declare.Exchange("EvolvedAI")
            .OnVirtualHost("/")
            .AsType(EasyNetQ.Migrations.ExchangeType.Topic)
            .Durable();

            Declare.Queue("FileSystem")
            .OnVirtualHost("/")
            .Durable();

            Declare.Binding()
            .OnVirtualHost("/")
            .FromExchange("EvolvedAI")
            .ToQueue("FileSystem")
            .RoutingKey("#");
        }
        public override void Apply()
        {
            Declare.Exchange("myExchange")
            .OnVirtualHost("Test")
            .AsType(ExchangeType.Topic)
            .Durable();

            Declare.Queue("myQueue")
            .OnVirtualHost("Test")
            .Durable();

            Declare.Binding()
            .OnVirtualHost("Test")
            .FromExchange("myExchange")
            .ToQueue("myQueue")
            .RoutingKey("#");
        }