예제 #1
0
        public AmazonSqsBusConfiguration(IAmazonSqsTopologyConfiguration topologyConfiguration)
            : base(topologyConfiguration)
        {
            HostConfiguration        = new AmazonSqsHostConfiguration(this, topologyConfiguration);
            BusEndpointConfiguration = CreateEndpointConfiguration();

            _busObservers = new BusObservable();
        }
        public IAmazonSqsHostConfiguration CreateHostConfiguration(IAmazonSqsHostControl host)
        {
            var hostConfiguration = new AmazonSqsHostConfiguration(this, host);

            _hosts.Add(hostConfiguration);

            return(hostConfiguration);
        }
        public IAmazonSqsHostConfiguration CreateHostConfiguration(AmazonSqsHostSettings settings)
        {
            var hostTopology = CreateHostTopology(settings.HostAddress);

            var hostConfiguration = new AmazonSqsHostConfiguration(this, settings, hostTopology);

            _hosts.Add(hostConfiguration);

            return(hostConfiguration);
        }