public PropertiesController(IPropertiesRepo propertiesRepo, IBookingValidator bookingValidator, IBookingsRepo bookingsRepo, IAgentsRepo agentsRepo) { _propertiesRepo = propertiesRepo; _bookingValidator = bookingValidator; _bookingsRepo = bookingsRepo; _agentsRepo = agentsRepo; }
private MessengerEngine(IIoC ioc) { _msg2failureHandler = new Dictionary<Type, Action<comm.IoMsg>> { {typeof(comm.PublishMsg), msg => update_failure_counters((comm.PublishMsg) msg)}, {typeof(comm.FilterInfo), msg => update_failure_counters((comm.FilterInfo) msg)}, {typeof(comm.TopicFilterMsg), msg => update_failure_counters((comm.TopicFilterMsg) msg)}, {typeof(comm.HeartbeatMsg), msg => update_failure_counters((comm.HeartbeatMsg) msg)} }; _counters = new Counters(); _configRa = ioc.Resolve<ISignalsConfigRa>(); var config = _configRa.Values; _cachedConfig = config; _log = ThrottledLog.NewSync(config.ThrottledLogTtl, ioc.Resolve<ILogFile>()); _hubUri = _configRa.MakeHubUri(); _connector = ioc.Resolve<IAgentConnector>(); _agents = AgentsRepo.NewSync(); }
public AgentsController(IAgentsRepo agentsRepo) { _agentsRepo = agentsRepo; }