Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. static void Main(string[] args)
  2. {
  3. ...
  4.  
  5. var details = CallRestMethodAsync(url, filterObj);
  6. Console.Write(details);
  7. Console.ReadKey();
  8.  
  9. }
  10.  
  11. public static async Task<NotificationEvents> CallRestMethodAsync(string url, FilterPager filterPager = null)
  12. {
  13. ...
  14. var result = await response.Content.ReadAsStringAsync();
  15. return JsonConvert.DeserializeObject<NotificationEvents>(result, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
  16. }
  17.  
  18. System.Threading.Tasks.Task`1[NotificationsHandler.NotificationEvents]
  19.  
  20. static async Task Main(string[] args)
  21. {
  22. ...
  23.  
  24. var details = await CallRestMethodAsync(url, filterObj);
  25. Console.Write(details);
  26. Console.ReadKey();
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement