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

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

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

            Console.WriteLine(result);
        }