Skip to content
This repository was archived by the owner on Mar 19, 2019. It is now read-only.

Commit 161fdbb

Browse files
committed
React to IFeatureColletion changes.
1 parent 2b5206a commit 161fdbb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Microsoft.AspNet.Server.WebListener/FeatureContext.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,26 +100,26 @@ private Response Response
100100

101101
private void PopulateFeatures()
102102
{
103-
_features.Add(typeof(IHttpRequestFeature), this);
104-
_features.Add(typeof(IHttpConnectionFeature), this);
105-
_features.Add(typeof(IHttpResponseFeature), this);
106-
_features.Add(typeof(IHttpSendFileFeature), this);
107-
_features.Add(typeof(IHttpBufferingFeature), this);
108-
_features.Add(typeof(IHttpRequestLifetimeFeature), this);
109-
_features.Add(typeof(IHttpAuthenticationFeature), this);
110-
_features.Add(typeof(IHttpRequestIdentifierFeature), this);
103+
_features[typeof(IHttpRequestFeature)] = this;
104+
_features[typeof(IHttpConnectionFeature)] = this;
105+
_features[typeof(IHttpResponseFeature)] = this;
106+
_features[typeof(IHttpSendFileFeature)] = this;
107+
_features[typeof(IHttpBufferingFeature)] = this;
108+
_features[typeof(IHttpRequestLifetimeFeature)] = this;
109+
_features[typeof(IHttpAuthenticationFeature)] = this;
110+
_features[typeof(IHttpRequestIdentifierFeature)] = this;
111111

112112
if (Request.IsSecureConnection)
113113
{
114-
_features.Add(typeof(ITlsConnectionFeature), this);
115-
_features.Add(typeof(ITlsTokenBindingFeature), this);
114+
_features[typeof(ITlsConnectionFeature)] = this;
115+
_features[typeof(ITlsTokenBindingFeature)] = this;
116116
}
117117

118118
// Win8+
119119
if (WebSocketHelpers.AreWebSocketsSupported)
120120
{
121-
_features.Add(typeof(IHttpUpgradeFeature), this);
122-
_features.Add(typeof(IHttpWebSocketFeature), this);
121+
_features[typeof(IHttpUpgradeFeature)] = this;
122+
_features[typeof(IHttpWebSocketFeature)] = this;
123123
}
124124
}
125125

0 commit comments

Comments
 (0)