コード例 #1
0
ファイル: Service.cs プロジェクト: joethinh/nohros-must
    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();
    }
コード例 #2
0
        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();
        }
コード例 #3
0
 public ServiceReporterFactory(IMetricsRegistry registry,
   IRubyServiceHost service_host) {
   if (service_host == null) {
     throw new ArgumentNullException("service_host");
   }
   registry_ = registry;
   service_host_ = service_host;
   func_ = CreateDynamicServiceReporter;
 }
コード例 #4
0
 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;
 }
コード例 #5
0
 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;
 }
コード例 #6
0
 public ServiceReporterFactory(IMetricsRegistry registry,
                               IRubyServiceHost service_host)
 {
     if (service_host == null)
     {
         throw new ArgumentNullException("service_host");
     }
     registry_     = registry;
     service_host_ = service_host;
     func_         = CreateDynamicServiceReporter;
 }
コード例 #7
0
 public override void Start(IRubyServiceHost service_host)
 {
     service_host_  = service_host;
     logger_.Logger = service_host_.Logger;
     start_stop_event_.WaitOne();
 }
コード例 #8
0
 public ServiceReporterFactory(IRubyServiceHost service_host)
     : this(null, service_host)
 {
 }
コード例 #9
0
 public ServiceReporterFactory(IRubyServiceHost service_host)
   : this(null, service_host) {
 }
コード例 #10
0
ファイル: Service.cs プロジェクト: joethinh/nohros-must
 public override void Start(IRubyServiceHost service_host) {
   service_host_ = service_host;
   logger_.Logger = service_host_.Logger;
   start_stop_event_.WaitOne();
 }