React to HttpChanges

This commit is contained in:
Hao Kung 2015-06-25 17:04:16 -07:00
parent ee8baab1ed
commit 5621a2c2c7
1 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNet.Http.Features; using Microsoft.AspNet.Http.Features;
namespace Microsoft.AspNet.TestHost namespace Microsoft.AspNet.TestHost
@ -33,7 +34,7 @@ namespace Microsoft.AspNet.TestHost
public bool HasStarted { get; set; } public bool HasStarted { get; set; }
public void OnResponseStarting(Action<object> callback, object state) public void OnStarting(Func<object, Task> callback, object state)
{ {
var prior = _responseStarting; var prior = _responseStarting;
_responseStarting = () => _responseStarting = () =>
@ -43,7 +44,7 @@ namespace Microsoft.AspNet.TestHost
}; };
} }
public void OnResponseCompleted(Action<object> callback, object state) public void OnCompleted(Func<object, Task> callback, object state)
{ {
var prior = _responseCompleted; var prior = _responseCompleted;
_responseCompleted = () => _responseCompleted = () =>