public void Stop() { if (_service != null) { _service.Stop(); } }
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(); }
public void StopService() { _service.Stop(); _client = null; }