This repository was archived by the owner on Nov 20, 2018. It is now read-only.
File tree 2 files changed +9
-7
lines changed
Microsoft.AspNet.Http.Core
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ public interface IApplicationBuilder
10
10
{
11
11
IServiceProvider ApplicationServices { get ; set ; }
12
12
13
- object Server { get ; set ; }
13
+ object Server { get ; }
14
14
15
- IDictionary < string , object > Properties { get ; set ; }
15
+ IDictionary < string , object > Properties { get ; }
16
16
17
17
IApplicationBuilder Use ( Func < RequestDelegate , RequestDelegate > middleware ) ;
18
18
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ public ApplicationBuilder(IServiceProvider serviceProvider)
19
19
ApplicationServices = serviceProvider ;
20
20
}
21
21
22
+ public ApplicationBuilder ( IServiceProvider serviceProvider , object server )
23
+ : this ( serviceProvider )
24
+ {
25
+ SetProperty ( Constants . BuilderProperties . ServerInformation , server ) ;
26
+ }
27
+
22
28
private ApplicationBuilder ( ApplicationBuilder builder )
23
29
{
24
30
Properties = builder . Properties ;
@@ -42,13 +48,9 @@ public object Server
42
48
{
43
49
return GetProperty < object > ( Constants . BuilderProperties . ServerInformation ) ;
44
50
}
45
- set
46
- {
47
- SetProperty < object > ( Constants . BuilderProperties . ServerInformation , value ) ;
48
- }
49
51
}
50
52
51
- public IDictionary < string , object > Properties { get ; set ; }
53
+ public IDictionary < string , object > Properties { get ; }
52
54
53
55
private T GetProperty < T > ( string key )
54
56
{
You can’t perform that action at this time.
0 commit comments