Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. #r "Newtonsoft.Json"
  2. using System;
  3. using Newtonsoft.Json
  4. public static void Run(string myQueueItem, Stream outputBlob, ILogger log) {
  5. log.LogInformation($"C# Queue trigger function processed: {myQueueItem}");
  6. dynamic data = JsonConvert.DeserializeObject(myQueueItem);
  7. log.LogInformation($"We got a new Queue Request Type: {data.MessageType}");
  8. if(data.MessageType == "Create Blob")
  9. {
  10. // outputBlob = data.Message;
  11. }
  12. // outputBlob = "";
  13. string blobFileName = "tettet.script"; }
  14.  
  15. #r "Newtonsoft.Json"
  16. using System;
  17. using Newtonsoft.Json;
  18.  
  19. public static void Run(string myQueueItem,
  20. Stream outputBlob,
  21. ILogger log)
  22. {
  23. log.LogInformation($"C# Queue trigger function processed: {myQueueItem}");
  24. dynamic data = JsonConvert.DeserializeObject(myQueueItem);
  25. log.LogInformation($"We got a new Queue Request Type: {data.MessageType}");
  26. if(data.MessageType == "Create Blob")
  27. {
  28. // outputBlob = data.Message;
  29. }
  30. // outputBlob = "";
  31. string blobFileName = "tettet.script";
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement