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);
        }
示例#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);
		}
示例#4
0
 public void AddSubscriptionCoordinatorConfigurator(SubscriptionRouterBuilderConfigurator configurator)
 {
     _subscriptionRouterConfigurator.AddConfigurator(configurator);
 }
 public void AddSubscriptionCoordinatorConfigurator(SubscriptionRouterBuilderConfigurator configurator)
 {
     _subscriptionRouterConfigurator.AddConfigurator(configurator);
 }
示例#6
0
 public void AddConfigurator(SubscriptionRouterBuilderConfigurator configurator)
 {
     _configurators.Add(configurator);
 }