示例#1
0
 public Service(ISettings settings, IMetricsDao metrics_dao)
 {
     settings_         = settings;
     metrics_dao_      = metrics_dao;
     logger_           = MetricsLogger.ForCurrentProcess;
     start_stop_event_ = new ManualResetEvent(false);
 }
示例#2
0
 public Service(ISettings settings, IMetricsDao metrics_dao)
 {
   settings_ = settings;
   metrics_dao_ = metrics_dao;
   logger_ = MetricsLogger.ForCurrentProcess;
   start_stop_event_ = new ManualResetEvent(false);
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SqlMetricsObserver"/>
 /// by using the given <see cref="IMetricsDao"/> and
 /// <see cref="ICacheProvider"/>.
 /// </summary>
 /// <param name="metrics_dao">
 /// A <see cref="IMetricsDao"/> object that can be used to access a sql
 /// database.
 /// </param>
 /// <param name="cache">
 /// A <see cref="ICacheProvider"/> object that can be used to cache
 /// objects.
 /// </param>
 public SqlMetricsObserver(IMetricsDao metrics_dao, ICacheProvider cache)
 {
     metrics_dao_ = metrics_dao;
     cache_       = cache;
 }
 public MetricsController(IMetricsDao metricsDao)
 {
     _metricsDao = metricsDao;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SqlMetricsObserver"/>
 /// by using the given <see cref="IMetricsDao"/> and
 /// <see cref="ICacheProvider"/>.
 /// </summary>
 /// <param name="metrics_dao">
 /// A <see cref="IMetricsDao"/> object that can be used to access a sql
 /// database.
 /// </param>
 /// <param name="cache">
 /// A <see cref="ICacheProvider"/> object that can be used to cache
 /// objects.
 /// </param>
 public SqlMetricsObserver(IMetricsDao metrics_dao, ICacheProvider cache) {
   metrics_dao_ = metrics_dao;
   cache_ = cache;
 }
示例#6
0
        public Service CreateService()
        {
            IMetricsDao metrics_dao = CreateMetricsRepository();

            return(new Service(settings_, metrics_dao));
        }