async Task UseMyInterfaceAsync(HttpClient client, IMyAsyncInterface service)
    {
        var result = await service.CountBytesAsync(client, "http://www.example.com");

        Trace.WriteLine(result);
    }
Esempio n. 2
0
        static async Task UseMyInterfaceAsync(IMyAsyncInterface service)
        {
            var result = await service.CountBytesAsync("http://www.example.com");

            Trace.WriteLine(result);
        }
Esempio n. 3
0
        static async Task UseMyInterfaceAsync(IMyAsyncInterface service)
        {
            var result = await service.CountBytesAsync("https://www.baidu.com");

            Console.WriteLine(result);
        }