예제 #1
0
        public SubscriptionRouterService Build()
        {
            var service = new SubscriptionRouterService(_bus, _network);

            _observers.Each(x => service.AddObserver(x(_bus, service)));

            return(service);
        }
        public SubscriptionRouterService Build()
        {
            var service = new SubscriptionRouterService(_bus, _network);

            _observers.Each(x => service.AddObserver(x(_bus, service)));

            return service;
        }
예제 #3
0
        public SubscriptionRouterService Build()
        {
            SubscriptionStorage storage = _subscriptionStorageFactory();

            var repository = new BusSubscriptionRepository(_bus.ControlBus.Endpoint.Address.Uri, storage);

            var service = new SubscriptionRouterService(_bus, repository, _network);

            _observers.Each(x => service.AddObserver(x(_bus, service)));

            return(service);
        }
        public SubscriptionRouterService Build()
        {
            SubscriptionStorage storage = _subscriptionStorageFactory();

            var repository = new BusSubscriptionRepository(_bus.ControlBus.Endpoint.Address.Uri, storage);

            var service = new SubscriptionRouterService(_bus, repository, _network);

            _observers.Each(x => service.AddObserver(x(_bus, service)));

            return service;
        }