Advertisement
Guest User

Untitled

a guest
May 25th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. // --------------------------------------------------------------------------------------------------------------------
  2. // <copyright file="Program.cs" company="">
  3. //
  4. // </copyright>
  5. // <summary>
  6. // The program.
  7. // </summary>
  8. // --------------------------------------------------------------------------------------------------------------------
  9. namespace Checker
  10. {
  11. using System.Threading.Tasks;
  12.  
  13. using PVPNetConnect;
  14.  
  15. /// <summary>
  16. /// The program.
  17. /// </summary>
  18. internal class Program
  19. {
  20. /// <summary>
  21. /// The connector.
  22. /// </summary>
  23. private static readonly PVPNetConnection Connector = new PVPNetConnection();
  24.  
  25. /// <summary>
  26. /// The main.
  27. /// </summary>
  28. /// <param name="args">
  29. /// The args.
  30. /// </param>
  31. private static void Main(string[] args)
  32. {
  33. }
  34.  
  35. /// <summary>
  36. /// Task that returns an array of summoners by an array of ID's
  37. /// </summary>
  38. /// <param name="summonerIds">
  39. /// Summoner ID's as double array
  40. /// </param>
  41. /// <returns>
  42. /// The <see cref="Task"/>.
  43. /// </returns>
  44. private async Task<string[]> GetSummonerNames(double[] summonerIds)
  45. {
  46. return Task.Factory.StartNew(() => Connector.GetSummonerNames(summonerIds).Result).Result;
  47. }
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement