コード例 #1
0
        public void SetupApi()
        {
            query         = ConfigurationHelpers.RabbitMqQueryWithConfigSettings();
            channelAction = ConfigurationHelpers.ChannelWithAppConfigSettings();
            var shortTermConnection = ConfigurationHelpers.FreshConnectionFromAppConfig();

            router = new RabbitRouter(channelAction, shortTermConnection);
        }
コード例 #2
0
        public void setup()
        {
            _config = new MessagingBaseConfiguration()
                      .WithDefaults()
                      //.UsesSecureConnections() // If you don't have HTTPS set up, comment out this line
                      .WithConnection(ConfigurationHelpers.RabbitMqConnectionWithConfigSettings());

            _messaging = _config.GetMessagingBase();

            _query = ConfigurationHelpers.RabbitMqQueryWithConfigSettings();
        }
コード例 #3
0
        public void setup()
        {
            _config = new MessagingBaseConfiguration()
                      .WithDefaults()
                      .UsesSecureConnections()
                      .WithConnection(ConfigurationHelpers.RabbitMqConnectionWithConfigSettings());

            _messaging = _config.GetMessagingBase();

            _query = ConfigurationHelpers.RabbitMqQueryWithConfigSettings();
        }
コード例 #4
0
        public void A_configured_messaging_base()
        {
            var config = new MessagingBaseConfiguration()
                         .WithDefaults()
                         .WithContractRoot <IMsg>()
                         .WithConnection(ConfigurationHelpers.RabbitMqConnectionWithConfigSettings())
                         .WithApplicationGroupName("app-group-name");

            messaging = config.GetMessagingBase();
            query     = ConfigurationHelpers.RabbitMqQueryWithConfigSettings();

            testMessage = new SuperMetadata
            {
                CorrelationId = Guid.NewGuid(),
                Contents      = "This is my message",
                FilePath      = @"C:\temp\",
                HashValue     = 893476,
                MetadataName  = "KeyValuePair"
            };
        }