public static IServiceBusConfigurator AddSubscriptionObserver(this IServiceBusConfigurator configurator,
                                                                      Func <IServiceBus, ISubscriptionRouter, ISubscriptionObserver>
                                                                      observerFactory)
        {
            var coordinatorConfigurator =
                new SubscriptionRouterBuilderConfigurator(x => x.AddObserverFactory(observerFactory));

            configurator.AddSubscriptionRouterConfigurator(coordinatorConfigurator);
            return(configurator);
        }
Esempio n. 2
0
        public static IServiceBusConfigurator UseSubscriptionService(this IServiceBusConfigurator configurator,
                                                                     Action <ISubscriptionClientConfigurator> configureCallback)
        {
            var clientConfigurator = new SubscriptionClientConfigurator();

            configureCallback(clientConfigurator);

            var routerBuilderConfigurator = new SubscriptionRouterBuilderConfigurator(x => x.SetNetwork(null));

            configurator.AddSubscriptionRouterConfigurator(routerBuilderConfigurator);

            configurator.AddSubscriptionObserver(clientConfigurator.Create);
            return(configurator);
        }
		public void AddConfigurator(SubscriptionRouterBuilderConfigurator configurator)
		{
			_configurators.Add(configurator);
		}
Esempio n. 4
0
 public void AddSubscriptionCoordinatorConfigurator(SubscriptionRouterBuilderConfigurator configurator)
 {
     _subscriptionRouterConfigurator.AddConfigurator(configurator);
 }
 public void AddSubscriptionCoordinatorConfigurator(SubscriptionRouterBuilderConfigurator configurator)
 {
     _subscriptionRouterConfigurator.AddConfigurator(configurator);
 }
Esempio n. 6
0
 public void AddConfigurator(SubscriptionRouterBuilderConfigurator configurator)
 {
     _configurators.Add(configurator);
 }