public ActiveDirectoryMetadatasController(IConfigurationRepository configurationRepository, IActiveDirectoryRepository activeDirectory, IOpenIdConnectIdentityProviderLogic oidcLogic)
 {
     this.oidcLogic = oidcLogic;
     this.configurationRepository = configurationRepository;
     this.http            = new HttpResponseHandler(this);
     this.activeDirectory = activeDirectory;
 }
Пример #2
0
        public UserService(IUnitOfWorkFactory unitOfWorkFactory, IActiveDirectoryRepository activeDirectoryRepository)
        {
            Guard.NotNull(() => unitOfWorkFactory, unitOfWorkFactory);
            Guard.NotNull(() => activeDirectoryRepository, activeDirectoryRepository);

            _activeDirectoryRepository = activeDirectoryRepository;
            _unitOfWorkFactory         = unitOfWorkFactory;
        }
Пример #3
0
        public UserSyncronizer(IUserService userService, IUnitOfWorkFactory unitOfWorkFactory, IActiveDirectoryGroupMapper groupMapper, IActiveDirectoryRepository activeDirectoryRepository)
        {
            Guard.NotNull(() => userService, userService);
            Guard.NotNull(() => unitOfWorkFactory, unitOfWorkFactory);
            Guard.NotNull(() => groupMapper, groupMapper);
            Guard.NotNull(() => activeDirectoryRepository, activeDirectoryRepository);

            _groupMapper             = groupMapper;
            _userService             = userService;
            _unitOfWorkFactory       = unitOfWorkFactory;
            _activeDirectoryReposity = activeDirectoryRepository;
        }
Пример #4
0
        public void Dispose()
        {
            _adRepo               = null;
            _workerRepo           = null;
            _ssoApplicationRepo   = null;
            _ssoProfileRepo       = null;
            _ssoProfileWorkerRepo = null;
            _appParameterRepo     = null;
            _appTranslationRepo   = null;

            Uow.Dispose();
            Uow = null;
        }
Пример #5
0
        public CorporateService()
        {
            try
            {
                //Initializes the Unit of Work connection and repositories
                Uow = new UnitOfWork <CorporateContextFmw>();

                _adRepo     = Uow.GetRepositoryActiveDirectory();
                _workerRepo = Uow.GetRepository <Worker>();
                _areaRepo   = Uow.GetRepository <Area>();
                _siteRepo   = Uow.GetRepository <Site>();
                _budgetRepo = Uow.GetRepository <BudgetCode>();
                _appRepo    = Uow.GetRepository <SsoApplication>();
            }
            catch (Exception ex)
            {
                LogHelper.ExceptionAndThrow(ex);
            }
        }
Пример #6
0
        public SsoService()
        {
            try
            {
                Uow                    = new UnitOfWork <SsoContextSso>();
                _adRepo                = Uow.GetRepositoryActiveDirectory();
                _workerRepo            = Uow.GetRepository <Worker>();
                _ssoApplicationRepo    = Uow.GetRepository <SsoApplication>();
                _ssoProfileRepo        = Uow.GetRepository <SsoProfile>();
                _ssoProfileServiceRepo = Uow.GetRepository <SsoProfileAndService>();
                _ssoProfileWorkerRepo  = Uow.GetRepository <SsoProfileAndWorker>();
                _appParameterRepo      = Uow.GetRepository <ApplicationParameter>();
                _appTranslationRepo    = Uow.GetRepository <ApplicationTranslation>();

                LanguageCultureName = Thread.CurrentThread.CurrentCulture.Name.ToLower();
            }
            catch (Exception ex)
            {
                LogHelper.ExceptionAndThrow(ex);
            }
        }
 public UserFactory(IActiveDirectoryRepository repository)
 {
     this.repository = repository;
 }
 public AdcsTemplateLogic(IConfigurationRepository configurationRepository, IActiveDirectoryRepository activeDirectory)
 {
     this.activeDirectory         = activeDirectory;
     this.configurationRepository = configurationRepository;
     this.dataTransform           = new DataTransformation();
 }
Пример #9
0
 public UserAccountService(IActiveDirectoryRepository repository)
 {
     _repository = repository;
 }
 internal UserRegisterService(IActiveDirectoryRepository repoAd)
 {
     _repoAd = repoAd;
 }
Пример #11
0
 public void ActiveDirectoryRepositoryInitialize()
 {
     uow          = new UnitOfWork <CorporateContextFmw>();
     adRepository = uow.GetRepositoryActiveDirectory();
 }
Пример #12
0
 public LoginService(IServiceBaseParameter <Entities.Entities.User, long> businessBaseParameter, ITokenService tokenBusiness, IActiveDirectoryRepository activeDirectoryRepository) : base(businessBaseParameter)
 {
     _tokenBusiness             = tokenBusiness;
     _activeDirectoryRepository = activeDirectoryRepository;
 }
 /// <summary>
 /// Gets an existent instance or creates a new one
 /// </summary>
 public IActiveDirectoryRepository GetSingleInstance()
 {
     return(_adRepository ?? (_adRepository = new ActiveDirectoryRepository()));
 }