public void SetupApi() { query = ConfigurationHelpers.RabbitMqQueryWithConfigSettings(); channelAction = ConfigurationHelpers.ChannelWithAppConfigSettings(); var shortTermConnection = ConfigurationHelpers.FreshConnectionFromAppConfig(); router = new RabbitRouter(channelAction, shortTermConnection); }
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(); }
public void setup() { _config = new MessagingBaseConfiguration() .WithDefaults() .UsesSecureConnections() .WithConnection(ConfigurationHelpers.RabbitMqConnectionWithConfigSettings()); _messaging = _config.GetMessagingBase(); _query = ConfigurationHelpers.RabbitMqQueryWithConfigSettings(); }
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" }; }