Example #1
0
 private void FillBrokerConfiguration()
 {
     if (_gatewayConfiguration == null)
     {
         _gatewayConfiguration = new GatewayConfiguration(_hosts, _userCrenedtial, _serviceLocator, _prefetchCount, _eventSubscriberThreadCount, _commandHandlerThreadCount);
     }
 }
        public IGateway Create(GatewayConfiguration configuration)
        {
            var connectionString = configuration.ToConnectionString();

            return new RabbitMqGateway(connectionString, configuration.EventSubscriberThreadCount, configuration.CommandHandlerThreadCount, configuration.Locator);
        }
Example #3
0
        public GatewayConfigurationBuilder WithConfiguration(GatewayConfiguration gatewayConfiguration)
        {
            _gatewayConfiguration = gatewayConfiguration;

            return(this);
        }