コード例 #1
0
        public ServiceBusConfigurator(ServiceBusDefaultSettings defaultSettings)
        {
            _settings = new ServiceBusSettings(defaultSettings);

            _builderFactory = DefaultBuilderFactory;
            _configurators  = new List <IBusBuilderConfigurator>();

            _endpointFactoryConfigurator = new EndpointFactoryConfigurator(new EndpointFactoryDefaultSettings());

            _subscriptionRouterConfigurator = new SubscriptionRouterConfigurator(_settings.Network);
            _configurators.Add(_subscriptionRouterConfigurator);
        }
コード例 #2
0
ファイル: ControlBusBuilder.cs プロジェクト: gcheney/Burrows
        public ControlBusBuilder([NotNull] ServiceBusSettings settings)
        {
            Guard.AgainstNull(settings, "settings");

            _settings                = settings;
            _postCreateActions       = new List <Action <ServiceBus> >();
            _busServiceConfigurators = new List <IBusServiceConfigurator>();

            var subscriptionCoordinatorConfigurator = new SubscriptionRouterConfigurator(_settings.Network);

            subscriptionCoordinatorConfigurator.SetNetwork(settings.Network);
            subscriptionCoordinatorConfigurator.Configure(this);
        }