Ejemplo n.º 1
0
 public PropertiesController(IPropertiesRepo propertiesRepo, IBookingValidator bookingValidator, IBookingsRepo bookingsRepo, IAgentsRepo agentsRepo)
 {
     _propertiesRepo   = propertiesRepo;
     _bookingValidator = bookingValidator;
     _bookingsRepo     = bookingsRepo;
     _agentsRepo       = agentsRepo;
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public AgentsController(IAgentsRepo agentsRepo)
 {
     _agentsRepo = agentsRepo;
 }