コード例 #1
0
    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);
        }