Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit fef2113

Browse files
committed
removed OnResponseCompleted from Owin
1 parent 970437b commit fef2113

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

src/Microsoft.AspNet.Owin/OwinConstants.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ internal static class CommonKeys
7070
public const string AppName = "host.AppName";
7171
public const string Capabilities = "server.Capabilities";
7272
public const string OnSendingHeaders = "server.OnSendingHeaders";
73-
public const string OnResponseCompleted = "server.OnResponseCompleted";
7473
public const string OnAppDisposing = "host.OnAppDisposing";
7574
public const string Scheme = "scheme";
7675
public const string Host = "host";

src/Microsoft.AspNet.Owin/OwinEnvironment.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ public OwinEnvironment(HttpContext context)
6262
{ OwinConstants.ResponseHeaders, new FeatureMap<IHttpResponseFeature>(feature => feature.Headers, (feature, value) => feature.Headers = (IDictionary<string, string[]>)value) },
6363
{ OwinConstants.ResponseBody, new FeatureMap<IHttpResponseFeature>(feature => feature.Body, () => Stream.Null, (feature, value) => feature.Body = (Stream)value) },
6464
{ OwinConstants.CommonKeys.OnSendingHeaders, new FeatureMap<IHttpResponseFeature>(feature => new Action<Action<object>, object>(feature.OnSendingHeaders)) },
65-
{OwinConstants.CommonKeys.OnResponseCompleted, new FeatureMap<IHttpResponseFeature>(feature => new Action<Action<object>, object>
66-
(feature.OnResponseCompleted)) },
6765

6866
{ OwinConstants.CommonKeys.LocalPort, new FeatureMap<IHttpConnectionFeature>(feature => feature.LocalPort.ToString(CultureInfo.InvariantCulture),
6967
(feature, value) => feature.LocalPort = Convert.ToInt32(value, CultureInfo.InvariantCulture)) },

src/Microsoft.AspNet.Owin/OwinFeatureCollection.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,7 @@ void IHttpResponseFeature.OnSendingHeaders(Action<object> callback, object state
157157

158158
void IHttpResponseFeature.OnResponseCompleted(Action<object> callback, object state)
159159
{
160-
var register = Prop<Action<Action<object>, object>>(OwinConstants.CommonKeys.OnResponseCompleted);
161-
if (register == null)
162-
{
163-
throw new NotSupportedException(OwinConstants.CommonKeys.OnResponseCompleted);
164-
}
165-
register(callback, state);
160+
throw new NotSupportedException();
166161
}
167162

168163
IPAddress IHttpConnectionFeature.RemoteIpAddress

0 commit comments

Comments
 (0)