File tree 1 file changed +7
-1
lines changed
src/Http/Http/src/Features
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,13 @@ public class ResponseCookiesFeature : IResponseCookiesFeature
26
26
/// <see cref="IResponseCookiesFeature"/> and the <see cref="IHttpResponseFeature"/>.
27
27
/// </param>
28
28
public ResponseCookiesFeature ( IFeatureCollection features )
29
- : this ( features , builderPool : null )
30
29
{
30
+ if ( features == null )
31
+ {
32
+ throw new ArgumentNullException ( nameof ( features ) ) ;
33
+ }
34
+
35
+ _features . Initalize ( features ) ;
31
36
}
32
37
33
38
/// <summary>
@@ -38,6 +43,7 @@ public ResponseCookiesFeature(IFeatureCollection features)
38
43
/// <see cref="IResponseCookiesFeature"/> and the <see cref="IHttpResponseFeature"/>.
39
44
/// </param>
40
45
/// <param name="builderPool">The <see cref="ObjectPool{T}"/>, if available.</param>
46
+ [ Obsolete ( "This constructor is obsolete and will be removed in a future version." ) ]
41
47
public ResponseCookiesFeature ( IFeatureCollection features , ObjectPool < StringBuilder > ? builderPool )
42
48
{
43
49
if ( features == null )
You can’t perform that action at this time.
0 commit comments