public void SetupApi()
        {
            query         = ConfigurationHelpers.RabbitMqQueryWithConfigSettings();
            channelAction = ConfigurationHelpers.ChannelWithAppConfigSettings();
            var shortTermConnection = ConfigurationHelpers.FreshConnectionFromAppConfig();

            router = new RabbitRouter(channelAction, shortTermConnection);
        }
        public void SetUp()
        {
            var longTermConnection  = ConfigurationHelpers.ChannelWithAppConfigSettings();
            var shortTermConnection = ConfigurationHelpers.FreshConnectionFromAppConfig();

            router  = new RabbitRouter(longTermConnection, shortTermConnection);
            subject = new TypeRouter(router);
        }
Exemplo n.º 3
0
        public void SetUp()
        {
            var longTermConnection  = ConfigurationHelpers.ChannelWithAppConfigSettings();
            var shortTermConnection = ConfigurationHelpers.FreshConnectionFromAppConfig();

            subject = new RabbitRouter(longTermConnection, shortTermConnection);

            typeRouter = new TypeRouter(subject);
            typeRouter.BuildRoutes(typeof(IFile));

            subject.AddDestination("dst");
            subject.Link("Example.Types.IMsg", "dst");
            subject.Send("Example.Types.IFile", null, null, null, "Hello");
        }