1 write to _serviceCollection
Microsoft.ML.AutoML (1)
AutoMLExperiment\AutoMLExperiment.cs (1)
55_serviceCollection = new ServiceCollection();
19 references to _serviceCollection
Microsoft.ML.AutoML (19)
AutoMLExperiment\AutoMLExperiment.cs (19)
61_serviceCollection.TryAddTransient((provider) => 69_serviceCollection.TryAddSingleton(_settings); 70_serviceCollection.TryAddSingleton(((IChannelProvider)_context).Start(nameof(AutoMLExperiment))); 71_serviceCollection.TryAddSingleton<IMLContextManager>(new DefaultMLContextManager(_context, $"{nameof(AutoMLExperiment)}-ChildContext")); 75internal IServiceCollection ServiceCollection { get => _serviceCollection; } 80_serviceCollection.AddScoped<IStopTrainingManager>((provider) => 95_serviceCollection.AddScoped<IStopTrainingManager>((provider) => 123_serviceCollection.AddSingleton<IMonitor>(monitor); 131_serviceCollection.AddSingleton<IMonitor, TMonitor>(); 139_serviceCollection.AddSingleton<IMonitor>(factory); 147_serviceCollection.AddSingleton<ITrialRunner>(runner); 155_serviceCollection.AddTransient<ITrialRunner>(factory); 163_serviceCollection.AddTransient<ITrialRunner, TTrialRunner>(); 179if (_serviceCollection.Contains(descriptor)) 181_serviceCollection.Replace(descriptor); 185_serviceCollection.Add(descriptor); 194_serviceCollection.AddSingleton<ITuner, TTuner>(); 217_serviceCollection.AddScoped((serviceProvider) => 229var serviceProvider = _serviceCollection.BuildServiceProvider();