@@ -100,26 +100,26 @@ private Response Response
100
100
101
101
private void PopulateFeatures ( )
102
102
{
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 ;
111
111
112
112
if ( Request . IsSecureConnection )
113
113
{
114
- _features . Add ( typeof ( ITlsConnectionFeature ) , this ) ;
115
- _features . Add ( typeof ( ITlsTokenBindingFeature ) , this ) ;
114
+ _features [ typeof ( ITlsConnectionFeature ) ] = this ;
115
+ _features [ typeof ( ITlsTokenBindingFeature ) ] = this ;
116
116
}
117
117
118
118
// Win8+
119
119
if ( WebSocketHelpers . AreWebSocketsSupported )
120
120
{
121
- _features . Add ( typeof ( IHttpUpgradeFeature ) , this ) ;
122
- _features . Add ( typeof ( IHttpWebSocketFeature ) , this ) ;
121
+ _features [ typeof ( IHttpUpgradeFeature ) ] = this ;
122
+ _features [ typeof ( IHttpWebSocketFeature ) ] = this ;
123
123
}
124
124
}
125
125
0 commit comments