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;
 }