public Service(ISettings settings, IMetricsDao metrics_dao) { settings_ = settings; metrics_dao_ = metrics_dao; logger_ = MetricsLogger.ForCurrentProcess; start_stop_event_ = new ManualResetEvent(false); }
/// <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; }
public Service CreateService() { IMetricsDao metrics_dao = CreateMetricsRepository(); return(new Service(settings_, metrics_dao)); }