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

Commit 67cc6bf

Browse files
committed
Remove cached Response from DefaultAuthenticationManager
1 parent 1300077 commit 67cc6bf

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Microsoft.AspNet.Http/Authentication/DefaultAuthenticationManager.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public class DefaultAuthenticationManager : AuthenticationManager, IFeatureCache
1818
private int _cachedFeaturesRevision = -1;
1919

2020
private IHttpAuthenticationFeature _authentication;
21-
private IHttpResponseFeature _response;
2221

2322
public DefaultAuthenticationManager(IFeatureCollection features)
2423
{
@@ -42,7 +41,6 @@ public void UpdateFeatures(IFeatureCollection features)
4241
private void ResetFeatures()
4342
{
4443
_authentication = null;
45-
_response = null;
4644
_cachedFeaturesRevision = _features.Revision;
4745
}
4846

@@ -58,11 +56,6 @@ private IHttpAuthenticationFeature HttpAuthenticationFeature
5856
}
5957
}
6058

61-
private IHttpResponseFeature HttpResponseFeature
62-
{
63-
get { return FeatureHelpers.GetAndCache(this, _features, ref _response); }
64-
}
65-
6659
public override IEnumerable<AuthenticationDescription> GetAuthenticationSchemes()
6760
{
6861
var handler = HttpAuthenticationFeature.Handler;

0 commit comments

Comments
 (0)