using System.Configuration; using Kreta.Client.Eugyintezes.Configuration; using Kreta.Core.FileService; using Kreta.Core.FileService.Configuration; using Kreta.Eugyintezes.BusinessLogic.Interface.Services; using Kreta.Eugyintezes.BusinessLogic.Services; using SimpleInjector; namespace Kreta.Eugyintezes.BusinessLogic.Infrastructure { public static class DependencyInjection { public static void RegisterTypes(Container container) { container.Register(Lifestyle.Scoped); container.Register(() => (FileServiceConfiguration)ConfigurationManager.GetSection(nameof(FileServiceConfiguration)), Lifestyle.Singleton); container.Register(Lifestyle.Singleton); container.Register(() => (EugyintezesClientConfiguration)ConfigurationManager.GetSection(nameof(EugyintezesClientConfiguration)), Lifestyle.Singleton); } } }