zhaw-dnet2/Tasks/Lab7/RankingClient/Program.cs

8 lines
462 B
C#

// See https://aka.ms/new-console-template for more information
RankingServiceReference.RankingServiceClient client = new RankingServiceReference.RankingServiceClient(RankingServiceReference.RankingServiceClient.EndpointConfiguration.RankingServicePort);
RankingServiceReference.competitor[] competitors = client.rankingList();
for (int i = 0; i < competitors.Length; i++)
{
Console.WriteLine($"{i + 1}. {competitors[i].name}, {competitors[i].time}");
}