11 lines
391 B
C#
11 lines
391 B
C#
// See https://aka.ms/new-console-template for more information
|
|
using RankingServiceReference;
|
|
|
|
RankingServiceClient client = new(RankingServiceClient.EndpointConfiguration.BasicHttpBinding_IRankingService);
|
|
Competitor[] competitors = client.RankingList();
|
|
|
|
for (int i = 0; i < competitors.Length; i++)
|
|
{
|
|
Console.WriteLine($"{i + 1}. {competitors[i].Name}, {competitors[i].Time}");
|
|
}
|