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"));
75
internal 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>();
179
if (
_serviceCollection
.Contains(descriptor))
181
_serviceCollection
.Replace(descriptor);
185
_serviceCollection
.Add(descriptor);
194
_serviceCollection
.AddSingleton<ITuner, TTuner>();
217
_serviceCollection
.AddScoped((serviceProvider) =>
229
var serviceProvider =
_serviceCollection
.BuildServiceProvider();