#pragma warning restore RS0026 // Do not add multiple public overloads with optional parameters private IContainer ConfigureContainer(IContainer container) { container.RegisterInstance(LoggerFactory); container.RegisterInstance(Logger); container.RegisterInstance(SerilogLogger); return(BuildContainer(container.WithDependencyInjectionAdapter())); }