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