daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Dec 15th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public async Task ProcessQueueMessageAsync([ServiceBusTrigger("testqueue")] Message message, CancellationToken cancellationToken, ILogger logWriter)
  2.     {
  3.         logWriter.LogError("GOT MESSAGE");
  4.         while (!cancellationToken.IsCancellationRequested)
  5.         {
  6.             await Task.Delay(2000);
  7.             logWriter.LogError("Not Cancelled");
  8.         }
  9.  
  10.         logWriter.LogError("CANCELLED!!!");          
  11.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top