Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // --------------------------------------------------------------------------------------------------------------------
- // <copyright file="Program.cs" company="">
- //
- // </copyright>
- // <summary>
- // The program.
- // </summary>
- // --------------------------------------------------------------------------------------------------------------------
- namespace Checker
- {
- using System.Threading.Tasks;
- using PVPNetConnect;
- /// <summary>
- /// The program.
- /// </summary>
- internal class Program
- {
- /// <summary>
- /// The connector.
- /// </summary>
- private static readonly PVPNetConnection Connector = new PVPNetConnection();
- /// <summary>
- /// The main.
- /// </summary>
- /// <param name="args">
- /// The args.
- /// </param>
- private static void Main(string[] args)
- {
- }
- /// <summary>
- /// Task that returns an array of summoners by an array of ID's
- /// </summary>
- /// <param name="summonerIds">
- /// Summoner ID's as double array
- /// </param>
- /// <returns>
- /// The <see cref="Task"/>.
- /// </returns>
- private async Task<string[]> GetSummonerNames(double[] summonerIds)
- {
- return Task.Factory.StartNew(() => Connector.GetSummonerNames(summonerIds).Result).Result;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement