@@ -13,20 +13,23 @@ public class ConfigurationCreator : IConfigurationCreator
13
13
private readonly IHttpHandlerOptionsCreator _httpHandlerOptionsCreator ;
14
14
private readonly IAdministrationPath _adminPath ;
15
15
private readonly ILoadBalancerOptionsCreator _loadBalancerOptionsCreator ;
16
+ private readonly IVersionCreator _versionCreator ;
16
17
17
18
public ConfigurationCreator (
18
19
IServiceProviderConfigurationCreator serviceProviderConfigCreator ,
19
20
IQoSOptionsCreator qosOptionsCreator ,
20
21
IHttpHandlerOptionsCreator httpHandlerOptionsCreator ,
21
22
IServiceProvider serviceProvider ,
22
- ILoadBalancerOptionsCreator loadBalancerOptionsCreator
23
+ ILoadBalancerOptionsCreator loadBalancerOptionsCreator ,
24
+ IVersionCreator versionCreator
23
25
)
24
26
{
25
27
_adminPath = serviceProvider . GetService < IAdministrationPath > ( ) ;
26
28
_loadBalancerOptionsCreator = loadBalancerOptionsCreator ;
27
29
_serviceProviderConfigCreator = serviceProviderConfigCreator ;
28
30
_qosOptionsCreator = qosOptionsCreator ;
29
31
_httpHandlerOptionsCreator = httpHandlerOptionsCreator ;
32
+ _versionCreator = versionCreator ;
30
33
}
31
34
32
35
public InternalConfiguration Create ( FileConfiguration fileConfiguration , List < ReRoute > reRoutes )
@@ -41,14 +44,17 @@ public InternalConfiguration Create(FileConfiguration fileConfiguration, List<Re
41
44
42
45
var adminPath = _adminPath != null ? _adminPath . Path : null ;
43
46
47
+ var version = _versionCreator . Create ( fileConfiguration . GlobalConfiguration . DownstreamHttpVersion ) ;
48
+
44
49
return new InternalConfiguration ( reRoutes ,
45
50
adminPath ,
46
51
serviceProviderConfiguration ,
47
52
fileConfiguration . GlobalConfiguration . RequestIdKey ,
48
53
lbOptions ,
49
54
fileConfiguration . GlobalConfiguration . DownstreamScheme ,
50
55
qosOptions ,
51
- httpHandlerOptions
56
+ httpHandlerOptions ,
57
+ version
52
58
) ;
53
59
}
54
60
}
0 commit comments