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); } }
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); } }
public void AddService(BusServiceLayer layer, IBusService service) { _catalog.Add(layer, service); }
public DefaultBusServiceConfigurator(BusServiceLayer layer, Func <IServiceBus, TService> serviceFactory) { _serviceFactory = serviceFactory; _layer = layer; }
public void Add(BusServiceLayer layer, IBusService service) { _services[(int)layer].Add(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); }
public void AddService(BusServiceLayer layer, IBusService service) { _serviceContainer.AddService(layer, service); }