public override void Start(IRubyServiceHost service_host) { logger_.Logger = service_host.Logger; start_thread_ = Thread.CurrentThread; service_host_ = service_host; // Blocks the current thread and waits the service to stop. start_stop_service_event_.WaitOne(); }
public ServiceReporterFactory(IMetricsRegistry registry, IRubyServiceHost service_host) { if (service_host == null) { throw new ArgumentNullException("service_host"); } registry_ = registry; service_host_ = service_host; func_ = CreateDynamicServiceReporter; }
public DynamicServiceReporter(IMetricsRegistry registry, ZmqContext context, IRubyServiceHost service_host) { service_host_ = service_host; reporter_ = new NopMetricsReporter(); period_ = 5; period_unit_ = TimeUnit.Seconds; registry_ = registry; logger_ = MetricsLogger.ForCurrentProcess; context_ = context; }
public override void Start(IRubyServiceHost service_host) { service_host_ = service_host; logger_.Logger = service_host_.Logger; start_stop_event_.WaitOne(); }
public ServiceReporterFactory(IRubyServiceHost service_host) : this(null, service_host) { }