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); }
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); }