Example #1
0
        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();
        }
Example #2
0
 static Program()
 {
     ServiceProvider = EntryPointConfigHelper.GetServiceProviderFromConfigurationBuilder();
 }
Example #3
0
        public static async Task Main(string[] args)
        {
            var directoryConfig = EntryPointConfigHelper.GetRootDirectory();

            await CreateHostBuilder(args, directoryConfig).Build().RunAsync();
        }