반응형
CancellationTokenSource cts = new CancellationTokenSource();
cts.CancelAfter(TimeSpan.FromSeconds(5));
CallOptions options = new CallOptions(cancellationToken: cts.Token);

JsonData result = client.GetSomeInfo(new SomeParam(), options);

 

반응형

+ Recent posts