init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,21 @@
|
|||
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<ITorzsadatService, TorzsadatService>(Lifestyle.Scoped);
|
||||
container.Register<IFileServiceConfiguration>(() => (FileServiceConfiguration)ConfigurationManager.GetSection(nameof(FileServiceConfiguration)), Lifestyle.Singleton);
|
||||
container.Register<IFileService, FileService>(Lifestyle.Singleton);
|
||||
container.Register<IEugyintezesClientConfiguration>(() => (EugyintezesClientConfiguration)ConfigurationManager.GetSection(nameof(EugyintezesClientConfiguration)), Lifestyle.Singleton);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue