@@ -12,7 +12,6 @@ namespace Microsoft.Azure.WebJobs.Script.Workers.Rpc
1212{
1313 internal class LanguageWorkerOptionsSetup : IConfigureOptions < LanguageWorkerOptions >
1414 {
15- private readonly IWorkerProfileManager _profileConditionManager ;
1615 private readonly IConfiguration _configuration ;
1716 private readonly ILogger _logger ;
1817 private readonly IEnvironment _environment ;
@@ -21,15 +20,13 @@ internal class LanguageWorkerOptionsSetup : IConfigureOptions<LanguageWorkerOpti
2120 public LanguageWorkerOptionsSetup ( IConfiguration configuration ,
2221 ILoggerFactory loggerFactory ,
2322 IEnvironment environment ,
24- IWorkerProfileManager profileConditionManager ,
2523 IMetricsLogger metricsLogger )
2624 {
2725 if ( loggerFactory is null )
2826 {
2927 throw new ArgumentNullException ( nameof ( loggerFactory ) ) ;
3028 }
3129
32- _profileConditionManager = profileConditionManager ?? throw new System . ArgumentNullException ( nameof ( profileConditionManager ) ) ;
3330 _configuration = configuration ?? throw new ArgumentNullException ( nameof ( configuration ) ) ;
3431 _environment = environment ?? throw new ArgumentNullException ( nameof ( environment ) ) ;
3532 _metricsLogger = metricsLogger ?? throw new ArgumentNullException ( nameof ( metricsLogger ) ) ;
@@ -47,9 +44,7 @@ public void Configure(LanguageWorkerOptions options)
4744 return ;
4845 }
4946
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 ) ;
5348 options . WorkerConfigs = configFactory . GetConfigs ( ) ;
5449 }
5550 }
0 commit comments