This repository was archived by the owner on Nov 20, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
src/Microsoft.AspNet.PipelineCore Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
2
2
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
3
4
+ using System . Collections . Generic ;
4
5
using System . IO ;
5
6
using System . Text ;
6
7
using System . Threading ;
@@ -20,6 +21,11 @@ public class FormFeature : IFormFeature
20
21
private Stream _bodyStream ;
21
22
private IReadableStringCollection _form ;
22
23
24
+ public FormFeature ( [ NotNull ] IDictionary < string , string [ ] > form )
25
+ : this ( new ReadableStringCollection ( form ) )
26
+ {
27
+ }
28
+
23
29
public FormFeature ( [ NotNull ] IReadableStringCollection form )
24
30
{
25
31
_form = form ;
Original file line number Diff line number Diff line change 1
1
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
2
2
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
3
4
+ using System . Collections . Generic ;
4
5
using Microsoft . AspNet . FeatureModel ;
5
6
using Microsoft . AspNet . Http ;
6
7
using Microsoft . AspNet . HttpFeature ;
@@ -16,6 +17,11 @@ public class QueryFeature : IQueryFeature
16
17
private string _queryString ;
17
18
private IReadableStringCollection _query ;
18
19
20
+ public QueryFeature ( [ NotNull ] IDictionary < string , string [ ] > query )
21
+ : this ( new ReadableStringCollection ( query ) )
22
+ {
23
+ }
24
+
19
25
public QueryFeature ( [ NotNull ] IReadableStringCollection query )
20
26
{
21
27
_query = query ;
Original file line number Diff line number Diff line change 2
2
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
3
4
4
using System ;
5
+ using System . Collections . Generic ;
6
+ using Microsoft . AspNet . FeatureModel ;
5
7
using Microsoft . AspNet . Http ;
6
8
using Microsoft . AspNet . Http . Infrastructure ;
7
- using Microsoft . AspNet . FeatureModel ;
8
9
using Microsoft . AspNet . HttpFeature ;
9
10
using Microsoft . AspNet . PipelineCore . Collections ;
10
11
using Microsoft . AspNet . PipelineCore . Infrastructure ;
@@ -19,6 +20,11 @@ public class RequestCookiesFeature : IRequestCookiesFeature
19
20
private RequestCookiesCollection _cookiesCollection ;
20
21
private IReadableStringCollection _cookies ;
21
22
23
+ public RequestCookiesFeature ( [ NotNull ] IDictionary < string , string [ ] > cookies )
24
+ : this ( new ReadableStringCollection ( cookies ) )
25
+ {
26
+ }
27
+
22
28
public RequestCookiesFeature ( [ NotNull ] IReadableStringCollection cookies )
23
29
{
24
30
_cookies = cookies ;
You can’t perform that action at this time.
0 commit comments