public static void UseMulticastSubscriptionClient(this MsmqConfigurator configurator,
		                                                  Action<MulticastSubscriptionClientConfigurator> configureCallback)
		{
			var clientConfigurator = new MulticastSubscriptionClientConfiguratorImpl();

			configureCallback(clientConfigurator);

			configurator.Configurator.AddSubscriptionObserver(clientConfigurator.Create);
		}
Exemple #2
0
        public static void UseMulticastSubscriptionClient(this MsmqConfigurator configurator,
                                                          Action <MulticastSubscriptionClientConfigurator> configureCallback)
        {
            var clientConfigurator = new MulticastSubscriptionClientConfiguratorImpl();

            configureCallback(clientConfigurator);

            configurator.Configurator.AddSubscriptionObserver(clientConfigurator.Create);
        }
		public static void UseMulticastSubscriptionClient(this ServiceBusConfigurator configurator,
		                                                  Action<MulticastSubscriptionClientConfigurator> configureCallback)
		{
            string network = null;

			var clientConfigurator = new MulticastSubscriptionClientConfiguratorImpl();

			configureCallback(clientConfigurator);

			configurator.AddSubscriptionObserver( (bus, router) => 
                {
                    network = router.Network;

                    return clientConfigurator.Create(bus, router);
                });

            configurator.AddService(BusServiceLayer.Presentation,
                () => new GroupMessageRouter(
                    clientConfigurator.SubscriptionBus,
                    clientConfigurator.GroupSelectionStrategy,
                    network));

		}