diff --git a/src/Microsoft.AspNet.Server.WebListener/FeatureContext.cs b/src/Microsoft.AspNet.Server.WebListener/FeatureContext.cs index f0478cc88d..4f9777011b 100644 --- a/src/Microsoft.AspNet.Server.WebListener/FeatureContext.cs +++ b/src/Microsoft.AspNet.Server.WebListener/FeatureContext.cs @@ -370,7 +370,7 @@ namespace Microsoft.AspNet.Server.WebListener return Response.SendFileAsync(path, offset, length, cancellation); } - CancellationToken IHttpRequestLifetimeFeature.OnRequestAborted + CancellationToken IHttpRequestLifetimeFeature.RequestAborted { get { return _requestContext.DisconnectToken; } } diff --git a/test/Microsoft.AspNet.Server.WebListener.FunctionalTests/ServerTests.cs b/test/Microsoft.AspNet.Server.WebListener.FunctionalTests/ServerTests.cs index 0b84f3a63a..3a386c2258 100644 --- a/test/Microsoft.AspNet.Server.WebListener.FunctionalTests/ServerTests.cs +++ b/test/Microsoft.AspNet.Server.WebListener.FunctionalTests/ServerTests.cs @@ -194,7 +194,7 @@ namespace Microsoft.AspNet.Server.WebListener using (Utilities.CreateHttpServer(env => { var httpContext = new DefaultHttpContext((IFeatureCollection)env); - CancellationToken ct = httpContext.OnRequestAborted; + CancellationToken ct = httpContext.RequestAborted; Assert.True(ct.CanBeCanceled, "CanBeCanceled"); Assert.False(ct.IsCancellationRequested, "IsCancellationRequested"); ct.Register(() => canceled.Set()); @@ -228,7 +228,7 @@ namespace Microsoft.AspNet.Server.WebListener using (Utilities.CreateHttpServer(env => { var httpContext = new DefaultHttpContext((IFeatureCollection)env); - CancellationToken ct = httpContext.OnRequestAborted; + CancellationToken ct = httpContext.RequestAborted; Assert.True(ct.CanBeCanceled, "CanBeCanceled"); Assert.False(ct.IsCancellationRequested, "IsCancellationRequested"); ct.Register(() => canceled.Set());