예제 #1
0
 public void Stop()
 {
     if (_service != null)
     {
         _service.Stop();
     }
 }
예제 #2
0
        static void Main(string[] args)
        {
            var client   = new ConsulClient();
            var registry = new DefaultModulesRegistry();

            registry.AddJRpcModule(new SimpleService());
            var svc = new JRpcService(registry, client, new OwinJrpcServer());

            svc.Start();
            Console.ReadLine();
            svc.Stop();
        }
예제 #3
0
 public void StopService()
 {
     _service.Stop();
     _client = null;
 }