Guest User

Untitled

a guest
Oct 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. JObject result = null;
  2. var tokenSource = new CancellationTokenSource();
  3. var token = tokenSource.Token;
  4. var scriptTimeout = 2000;
  5.  
  6. tokenSource.CancelAfter((int) scriptTimeout);
  7.  
  8. result = await _nodeServices.InvokeExportAsync<JObject>(token, "./Node/script", "run");
Add Comment
Please, Sign In to add comment