async Task UseMyInterfaceAsync(HttpClient client, IMyAsyncInterface service) { var result = await service.CountBytesAsync(client, "http://www.example.com"); Trace.WriteLine(result); }
static async Task UseMyInterfaceAsync(IMyAsyncInterface service) { var result = await service.CountBytesAsync("http://www.example.com"); Trace.WriteLine(result); }
static async Task UseMyInterfaceAsync(IMyAsyncInterface service) { var result = await service.CountBytesAsync("https://www.baidu.com"); Console.WriteLine(result); }