public static void IoCConfiguration(IServiceProvider serviceProvider, AlgoMode algoMode) { var builder = new ContainerBuilder(); EntryPointConfigHelper.RegisterConfigurationInjections(serviceProvider, builder); var oracle = new RegisterInjections(); oracle.RegisterTypes(builder, algoMode); RegisterGenVals(builder, algoMode); OverrideRegistrations?.Invoke(builder); _container = builder.Build(); }
static Program() { ServiceProvider = EntryPointConfigHelper.GetServiceProviderFromConfigurationBuilder(); }
public static async Task Main(string[] args) { var directoryConfig = EntryPointConfigHelper.GetRootDirectory(); await CreateHostBuilder(args, directoryConfig).Build().RunAsync(); }