private void PersistAccess(AccessEnity access) { IAccessRepository accessRepo = AccessRepoFactory.GetAuthorisationRepository(DatabaseOption.DatabaseEngine, DatabaseOption.DbConnectionString); accessRepo.InsertAccess(access); }
private AccessEnity GetAccessEntity(string token) { IAccessRepository accessRepo = AccessRepoFactory.GetAuthorisationRepository(DatabaseOption.DatabaseEngine, DatabaseOption.DbConnectionString); return(accessRepo.GetAccessMatchingToken(token)); }
public EmploymentService(IEmploymentRepository repository, IUnitOfWork unitOfWork, IMapper mapper, IAccessRepository accRepository) { this.repository = repository; this.accRepository = accRepository; this.unitOfWork = unitOfWork; this.mapper = mapper; }
public AccessBusiness(IPlateRecognizer plateRecognizer, IVehicleBusiness vehicleBusiness, IAccessRepository accessRepository) { _plateRecognizer = plateRecognizer; _vehicleBusiness = vehicleBusiness; _accessRepository = accessRepository; }
public AccessService(IAccessRepository accessRepository, IAccessLogRepository accessLogRepository, IDeviceRepository deviceRepository, IControlRepository controlRepository, IUnitOfWork unitOfWork) { this._accessLogRepository = accessLogRepository; this._accessRepository = accessRepository; this._deviceRepository = deviceRepository; this._controlRepository = controlRepository; this._unitOfWork = unitOfWork; }
public StorageController( IFileRepository fileRepositoryParam, IUserRepository userRepositoryParam, ITagRepository tagRepositoryParam, IAccessRepository accessRepositoryParam) { fileRepository = fileRepositoryParam; userRepository = userRepositoryParam; tagRepository = tagRepositoryParam; accessRepository = accessRepositoryParam; }
public AccessManager( ILogger <AccessManager> logger, IOpenDoorService openDoorService, IAccessRepository accessRepository, IMicroserviceSettings applicationSettings) { _logger = logger; _openDoorService = openDoorService; _accessRepository = accessRepository; _applicationSettings = applicationSettings; }
public AvailableDocumentsController( IFileRepository fileRepositoryParam, IUserRepository userRepositoryParam, ITagRepository tagRepositoryParam, IAccessRepository accessRepositoryParam) { fileRepository = fileRepositoryParam; userRepository = userRepositoryParam; tagRepository = tagRepositoryParam; accessRepository = accessRepositoryParam; }
public AccessService(IAccessRepository accessRepository, IUserRepository userRepository, IGroupRepository groupRepository, ISmartLockRepository smartLockRepository , IAzureAdRepository azureAdRepository, IMapper mapper) { _accessRepository = accessRepository ?? throw new ArgumentNullException(nameof(accessRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _groupRepository = groupRepository ?? throw new ArgumentNullException(nameof(groupRepository)); _smartLockRepository = smartLockRepository ?? throw new ArgumentNullException(nameof(smartLockRepository)); _azureAdRepository = azureAdRepository ?? throw new ArgumentNullException(nameof(azureAdRepository)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public SmartLocksController(ISmartLockRepository smartLockRepository, IUserRepository userRepository, IGroupRepository groupRepository, IAzureAdRepository azureAdRepository, IAccessRepository accessRepository, IMapper mapper, ILogger <SmartLocksController> logger) { _smartLockRepository = smartLockRepository ?? throw new ArgumentNullException(nameof(smartLockRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _groupRepository = groupRepository ?? throw new ArgumentNullException(nameof(groupRepository)); _azureAdRepository = azureAdRepository ?? throw new ArgumentNullException(nameof(azureAdRepository)); _accessRepository = accessRepository ?? throw new ArgumentNullException(nameof(accessRepository)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public AccessService(IAccessRepository accessRepository) { _accessRepository = accessRepository; }
public AccessService(IAccessRepository accesRepository) { this._AccessRepository = accesRepository; }
public AccessRules(IAccessRepository repository) : base(repository) { }
public ServiceAccess(IAccessRepository accessRepository) { _accessRepository = accessRepository; }
public AccessService( IAccessRepository repository ) { _repository = repository; }
public AccessService(IAccessRepository repository, IUnitOfWork unitOfWork, IMapper mapper) { this.repository = repository; this.unitOfWork = unitOfWork; this.mapper = mapper; }
public AccessService() { _accessRepository = AccessRepository.Instance; }
public IEnumerable <Access> GetAll([FromServices] IAccessRepository repository) { return(repository.GetAll()); }
public AccessHandler(IAccessRepository repository) { _repository = repository; }
public AccessService(IAccessRepository accessRepository) : base((IGenericRepository <Access>)accessRepository) { _accessRepository = accessRepository; }
public Access GetById([FromServices] IAccessRepository repository, Guid id) { return(repository.GetById(id)); }
public HomeController(IAccessRepository accessRepository) { _accessRepository = accessRepository; }