Ejemplo n.º 1
0
        public void Add(BusServiceLayer layer, IBusService service)
		{
			lock (_services)
			{
				IList<IBusService> serviceList;
				if (!_services.TryGetValue((int) layer, out serviceList))
				{
					serviceList = new List<IBusService>();
					_services.Add((int) layer, serviceList);
				}

				serviceList.Add(service);
			}
		}
Ejemplo n.º 2
0
        public void Add(BusServiceLayer layer, IBusService service)
        {
            lock (_services)
            {
                IList <IBusService> serviceList;
                if (!_services.TryGetValue((int)layer, out serviceList))
                {
                    serviceList = new List <IBusService>();
                    _services.Add((int)layer, serviceList);
                }

                serviceList.Add(service);
            }
        }
Ejemplo n.º 3
0
 public void AddService(BusServiceLayer layer, IBusService service)
 {
     _catalog.Add(layer, service);
 }
Ejemplo n.º 4
0
 public DefaultBusServiceConfigurator(BusServiceLayer layer, Func <IServiceBus, TService> serviceFactory)
 {
     _serviceFactory = serviceFactory;
     _layer          = layer;
 }
Ejemplo n.º 5
0
 public void Add(BusServiceLayer layer, IBusService service)
 {
     _services[(int)layer].Add(service);
 }
Ejemplo n.º 6
0
		public void AddService(BusServiceLayer layer, IBusService service)
		{
			_catalog.Add(layer, service);
		}
        public static void AddService <TService>(this ServiceBusConfigurator configurator, BusServiceLayer layer,
                                                 Func <IServiceBus, TService> serviceFactory)
            where TService : IBusService
        {
            var serviceConfigurator = new DefaultBusServiceConfigurator <TService>(layer, serviceFactory);

            configurator.AddBusConfigurator(serviceConfigurator);
        }
        public static void ConfigureService <TServiceConfigurator>(this ServiceBusConfigurator configurator, BusServiceLayer layer,
                                                                   Action <TServiceConfigurator> configure)
            where TServiceConfigurator : BusServiceConfigurator, new()
        {
            var serviceConfigurator = new TServiceConfigurator();

            configure(serviceConfigurator);

            var busConfigurator = new CustomBusServiceConfigurator(serviceConfigurator);

            configurator.AddBusConfigurator(busConfigurator);
        }
Ejemplo n.º 9
0
 public void AddService(BusServiceLayer layer, IBusService service)
 {
     _serviceContainer.AddService(layer, service);
 }
Ejemplo n.º 10
0
 public void Add(BusServiceLayer layer, IBusService service)
 {
     _services[(int)layer].Add(service);
 }