@@ -12,7 +12,6 @@ namespace Microsoft.Azure.WebJobs.Script.Workers.Rpc
12
12
{
13
13
internal class LanguageWorkerOptionsSetup : IConfigureOptions < LanguageWorkerOptions >
14
14
{
15
- private readonly IWorkerProfileManager _profileConditionManager ;
16
15
private readonly IConfiguration _configuration ;
17
16
private readonly ILogger _logger ;
18
17
private readonly IEnvironment _environment ;
@@ -21,15 +20,13 @@ internal class LanguageWorkerOptionsSetup : IConfigureOptions<LanguageWorkerOpti
21
20
public LanguageWorkerOptionsSetup ( IConfiguration configuration ,
22
21
ILoggerFactory loggerFactory ,
23
22
IEnvironment environment ,
24
- IWorkerProfileManager profileConditionManager ,
25
23
IMetricsLogger metricsLogger )
26
24
{
27
25
if ( loggerFactory is null )
28
26
{
29
27
throw new ArgumentNullException ( nameof ( loggerFactory ) ) ;
30
28
}
31
29
32
- _profileConditionManager = profileConditionManager ?? throw new System . ArgumentNullException ( nameof ( profileConditionManager ) ) ;
33
30
_configuration = configuration ?? throw new ArgumentNullException ( nameof ( configuration ) ) ;
34
31
_environment = environment ?? throw new ArgumentNullException ( nameof ( environment ) ) ;
35
32
_metricsLogger = metricsLogger ?? throw new ArgumentNullException ( nameof ( metricsLogger ) ) ;
@@ -47,9 +44,7 @@ public void Configure(LanguageWorkerOptions options)
47
44
return ;
48
45
}
49
46
50
- var configFactory = new RpcWorkerConfigFactory ( _configuration , _logger , SystemRuntimeInformation . Instance ,
51
- _profileConditionManager , _environment , _metricsLogger ) ;
52
-
47
+ var configFactory = new RpcWorkerConfigFactory ( _configuration , _logger , SystemRuntimeInformation . Instance , _environment , _metricsLogger ) ;
53
48
options . WorkerConfigs = configFactory . GetConfigs ( ) ;
54
49
}
55
50
}
0 commit comments