public GhabzeBarghService(IRepository <GhabzeBargh, Guid> repository, IMapper mapper, IComponentContext container, ISystemEventLogService systemEventLogService, IUnitOfWork unitOfWork) : base(mapper, repository, container, systemEventLogService, unitOfWork) { _repository = repository; }
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; }
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); }