Example #1
0
 public Task StartAsync(CancellationToken cancellationToken = new CancellationToken())
 {
     return(Task.Factory.StartNew(() =>
     {
         GrpcServiceManager.Start(Greeter.BindService(_greeterService));
     }, cancellationToken));
 }
Example #2
0
 public Task StopAsync(CancellationToken cancellationToken = new CancellationToken())
 {
     return(Task.Factory.StartNew(() => { GrpcServiceManager.Stop(); }, cancellationToken));
 }