Exemplo n.º 1
0
        public Task <HttpResponseMessage> SendAsync(HttpRequestMessage request)
        {
            var response = new TracksWhenDisposedResponseMessage();

            Responses.Add(response);
            return(Task.Factory.StartNew(() => (HttpResponseMessage)response));
        }
Exemplo n.º 2
0
 public Task<HttpResponseMessage> SendAsync(HttpRequestMessage request)
 {
     var response = new TracksWhenDisposedResponseMessage();
     Responses.Add(response);
     return Task.Factory.StartNew(() => (HttpResponseMessage)response);
 }