From b652ce86427b23837fda0f2b1c86190c0fbbb68f Mon Sep 17 00:00:00 2001 From: Peter Yu Date: Thu, 20 Sep 2018 18:37:15 -0700 Subject: [PATCH] Fixing some DI References that were causing a few failures. --- src/PackageLagMonitor/Job.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PackageLagMonitor/Job.cs b/src/PackageLagMonitor/Job.cs index 5fbc8de37..4d63eca37 100644 --- a/src/PackageLagMonitor/Job.cs +++ b/src/PackageLagMonitor/Job.cs @@ -48,7 +48,7 @@ public override void Init(IServiceContainer serviceContainer, IDictionary(); - _azureManagementApiWrapper = _serviceProvider.GetService(); + _azureManagementApiWrapper = _serviceProvider.GetService(); _catalogClient = _serviceProvider.GetService(); _httpClient = _serviceProvider.GetService(); _searchServiceClient = _serviceProvider.GetService(); @@ -97,6 +97,7 @@ private void ConfigureLibraries(IServiceCollection services) private void ConfigureJobServices(IServiceCollection services, IConfigurationRoot configurationRoot) { services.Configure(configurationRoot.GetSection(MonitorConfigurationSectionName)); + services.Configure(configurationRoot.GetSection(MonitorConfigurationSectionName)); services.Configure(configurationRoot.GetSection(AzureManagementSectionName)); services.AddSingleton(p => @@ -122,7 +123,7 @@ private void ConfigureJobServices(IServiceCollection services, IConfigurationRoo services.AddTransient(p => p.GetService>().Value); services.AddTransient(p => p.GetService>().Value); services.AddSingleton(); - services.AddSingleton(); + services.AddSingleton(); services.AddTransient(); }