예제 #1
0
 public GhabzeBarghService(IRepository <GhabzeBargh, Guid> repository,
                           IMapper mapper,
                           IComponentContext container,
                           ISystemEventLogService systemEventLogService,
                           IUnitOfWork unitOfWork) : base(mapper, repository, container, systemEventLogService, unitOfWork)
 {
     _repository = repository;
 }
예제 #2
0
 public SystemEventLogFactory()
 {
     _container = new UnityContainer();
     UnityConfigurationSection section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
     section.Configure(_container, "defaultContainer");
     SystemEventLogService = _container.Resolve<ISystemEventLogService>() as SystemEventLogService;
     ExceptionalLogService = _container.Resolve<IExceptionalLogService>() as ExceptionalLogService;
     ServiceLocatorProvider sp = new ServiceLocatorProvider(GetServiceLocator);
     ServiceLocator.SetLocatorProvider(sp);
 }
 public ApplicationService(IMapper mapper,
                           IRepository <TEntity, TPrimaryKey> repository,
                           IComponentContext container,
                           ISystemEventLogService systemEventLogService,
                           IUnitOfWork unitOfWork)
 {
     _mapper                = mapper;
     _repository            = repository;
     _container             = container;
     _unitOfWork            = unitOfWork;
     _systemEventLogService = systemEventLogService;
 }
예제 #4
0
        public SystemEventLogFactory()
        {
            _container = new UnityContainer();
            UnityConfigurationSection section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");

            section.Configure(_container, "defaultContainer");
            SystemEventLogService = _container.Resolve <ISystemEventLogService>() as SystemEventLogService;
            ExceptionalLogService = _container.Resolve <IExceptionalLogService>() as ExceptionalLogService;
            ServiceLocatorProvider sp = new ServiceLocatorProvider(GetServiceLocator);

            ServiceLocator.SetLocatorProvider(sp);
        }