public ServerStateClientService(IServerStateService serverStateService, IServerInfoService serverInfoService,
                                 IAccessService accessService)
 {
     _serverStateService = serverStateService;
     _serverInfoService  = serverInfoService;
     _accessService      = accessService;
 }
示例#2
0
 public AuthController(IAccessService accessService, ILogger <AuthController> logger, IOptionsSnapshot <JwtOptions> options, IMetricsRegistry metricsRegistry)
 {
     _metricsRegistry = metricsRegistry;
     _accessService   = accessService;
     _logger          = logger;
     _options         = options.Value;
 }
示例#3
0
 public UsersController(IUnitOfWork unitOfWork, IMapper iMapper, IAccessService accessService, HashGenerator hashGenerator)
 {
     _unitOfWork    = unitOfWork;
     _iMapper       = iMapper;
     _accessService = accessService;
     _hashGenerator = hashGenerator;
 }
示例#4
0
 public TestsController(
     RelationalDbContext context,
     IAccessService <TaskDefinition> accessService,
     UserManager <ApplicationUser> userManager) : base(context, userManager)
 {
     _accessService = accessService;
 }
示例#5
0
 public LanguagesController(
     RelationalDbContext context,
     IAccessService <Language> accessService,
     UserManager <ApplicationUser> userManager) : base(context, userManager)
 {
     _accessService = accessService;
 }
示例#6
0
 public CheckersController(
     RelationalDbContext context,
     UserManager <ApplicationUser> userManager,
     IAccessService <Checker> accessService) : base(context, userManager)
 {
     _accessService = accessService;
 }
示例#7
0
 public EditorController(IRepository<Editor> editorRepository, IAccessService accessService, IEmailService emailService, IMembershipService membershipService)
 {
     _editorRepository = editorRepository;
     _accessService = accessService;
     _emailService = emailService;
     _membershipService = membershipService;
 }
示例#8
0
 public HeaderViewModel(IRegionManager regionManager, IAccessService accessService)
 {
     _regionManager = regionManager;
     _accessService = accessService;
     HomeCommand    = new DelegateCommand(OnHome);
     LogoutCommand  = new DelegateCommand(async() => await OnLogout());
 }
示例#9
0
 /// <summary>
 /// Инициализирует новый экземпляр класса <see cref="ProductController"/>.
 /// </summary>
 /// <param name="productService">Сервис для работы с базой продуктов.</param>
 /// <param name="accessService">Сервис для проверки уровня доступа клиента.</param>
 /// <param name="loggedRequestsService">Сервис для возврата логгированных ответов сервера.</param>
 public ProductController(IProductService productService,
                          IAccessService accessService,
                          ILoggedRequestsService loggedRequestsService)
 {
     _productService        = productService;
     _accessService         = accessService;
     _loggedRequestsService = loggedRequestsService;
 }
 public AccessController(IUserInfoService userService,
                         IHttpContextAccessor contextAccessor,
                         IAccessService accessService)
 {
     _userService     = userService;
     _contextAccessor = contextAccessor;
     _accessService   = accessService;
 }
示例#11
0
 /// <summary>
 /// Инициализирует новый экземпляр класса <see cref="ClientController"/>.
 /// </summary>
 /// <param name="clientService">Сервис для работы с базой клиентов.</param>
 /// <param name="accessService">Сервис для проверки уровня доступа клиента.</param>
 /// <param name="loggedRequestsService">Сервис для возврата логгированных ответов сервера.</param>
 public ClientController(IClientService clientService,
                         IAccessService accessService,
                         ILoggedRequestsService loggedRequestsService)
 {
     _clientService         = clientService;
     _accessService         = accessService;
     _loggedRequestsService = loggedRequestsService;
 }
示例#12
0
 /// <summary>
 /// Инициализирует новый экземпляр класса <see cref="OrderController"/>.
 /// </summary>
 /// <param name="orderService">Сервис для работы с базой заказов.</param>
 /// <param name="accessService">Сервис для проверки уровня доступа клиента.</param>
 /// <param name="loggedRequestsService">Сервис для возврата логгированных ответов сервера.</param>
 public OrderController(IOrderService orderService,
                        IAccessService accessService,
                        ILoggedRequestsService loggedRequestsService)
 {
     _orderService          = orderService;
     _accessService         = accessService;
     _loggedRequestsService = loggedRequestsService;
 }
 public UploadsAccessService(
     RelationalDbContext context,
     IRoleHelper roleHelper,
     IAccessService <TaskDefinition> accessService) : base(roleHelper)
 {
     _accessService = accessService;
     _context       = context;
 }
示例#14
0
 public AuthController(
     IAccessService service
     , IOptionsSnapshot <JwtOptions> jwtOption
     )
 {
     _service   = service;
     _jwtOption = jwtOption.Value;
 }
示例#15
0
 public ProfileAppService(IProfileService profileService, IPermissionService permissionService,
                          IUnitOfWork uow, IAccessService accessService) : base(uow)
 {
     _profileService    = profileService;
     _permissionService = permissionService;
     _uow           = uow;
     _accessService = accessService;
 }
示例#16
0
 public AccessControl(mydbContext context, IUserService userService, IAccessService accessService, IObjectService objectService, ILoggerService logger)
 {
     _context       = context;
     _userService   = userService;
     _accessService = accessService;
     _objectService = objectService;
     _logger        = logger;
 }
示例#17
0
 public GameExecutor(IEnumerable <IMessageHandler> messageHandlers, IDataStore dataStore, IReporter reporter,
                     IAccessService accessService)
 {
     _messageHandlers = messageHandlers.ToList();
     _dataStore       = dataStore;
     _reporter        = reporter;
     _accessService   = accessService;
     MessageHandlerHelpers.SetHandlers(messageHandlers);
 }
示例#18
0
 public PhaseController(
     IAccessService accessService,
     IPhaseService phaseService,
     IPhaseValidator phaseValidator)
 {
     _accessService  = accessService;
     _phaseService   = phaseService;
     _phaseValidator = phaseValidator;
 }
 public PermissionsController(IAccessService accessService,
                              IMappedBaseEntityService mappedBaseEntityService,
                              IUserManager userManager,
                              IRoleManager roleManager)
 {
     _roleManager             = roleManager;
     _mappedBaseEntityService = mappedBaseEntityService;
     _accessService           = accessService;
     _userManager             = userManager;
 }
示例#20
0
        public static bool HasAccess(Tenant currentTenant, string[] accessTypes)
        {
            IAccessService accessService = DependencyResolver.Current.GetService <IAccessService>();

            if (currentTenant == null)
            {
                return(false);
            }
            return(accessService.HasAccess(currentTenant.Id, accessTypes));
        }
示例#21
0
 public ProfileController(RelationalDbContext context,
                          IAccessService <ApplicationUser> accessService,
                          IRoleHelper roleHelper,
                          UserManager <ApplicationUser> userManager,
                          ISieveProcessor sieveProcessor) : base(context, userManager)
 {
     _accessService  = accessService;
     _sieveProcessor = sieveProcessor;
     _roleHelper     = roleHelper;
 }
示例#22
0
        public PagesController(
            ITermService termService
            , ICollegeService collegeService
            , IEducationalGroupService educationalGroupService
            , IProfessorService professorService
            , IRoleService roleService
            , IRoleAccessService roleAccessService
            , IAccessService accessService
            , IUserRoleService userRoleService
            , IMappingService mappingService
            , IIndicatorService indicatorService
            , IUniversityLevelMappingService universityLevelMappingService
            , IUserService userService
            , IScheduleService scheduleService


            , IEducationalClassService educationalClassService
            , IStudentEducationalClassService studentEducationalClassService
            , IProfessorScoreService professorScoreService
            , IMappingTypeService mappingTypeService
            , IEducationalGroupScoreService educationalGroupScoreService
            , ILogService logService
            , ILogTypeService logTypeService
            , IServiceUsersMappingService serviceUsersMappingService
            )
        {
            _termService                   = termService;
            _collegeService                = collegeService;
            _educationalGroupService       = educationalGroupService;
            _professorService              = professorService;
            _roleService                   = roleService;
            _roleAccessService             = roleAccessService;
            _accessService                 = accessService;
            _userRoleService               = userRoleService;
            _mappingService                = mappingService;
            _indicatorService              = indicatorService;
            _universityLevelMappingService = universityLevelMappingService;
            _userService                   = userService;
            _scheduleService               = scheduleService;
            _logService                     = logService;
            _logTypeService                 = logTypeService;
            _educationalClassService        = educationalClassService;
            _studentEducationalClassService = studentEducationalClassService;
            _professorScoreService          = professorScoreService;
            _mappingTypeService             = mappingTypeService;
            _educationalGroupScoreService   = educationalGroupScoreService;
            _serviceUsersMappingService     = serviceUsersMappingService;
            //SyncService.RunAll(termService, mappingService, collegeService, educationalGroupService
            //    , professorService, educationalClassService, studentEducationalClassService, professorScoreService
            //    , indicatorService, mappingTypeService, universityLevelMappingService, educationalGroupScoreService
            //    , logService, logTypeService, userService);
            //var lastUpdate = _logService.LastUpdate();
        }
示例#23
0
 public RolesController(
     IRoleService roleService,
     IAccessService accessService,
     ITokenService tokenService,
     IRoleModelBuilder roleModelBuilder,
     IPermissionFactory permissionFactory)
 {
     _roleService       = roleService;
     _accessService     = accessService;
     _tokenService      = tokenService;
     _roleModelBuilder  = roleModelBuilder;
     _permissionFactory = permissionFactory;
 }
示例#24
0
 public UploadsController(
     ITestingService testingService,
     RelationalDbContext context,
     IAccessService <Upload> accessService,
     ICodeManagmentService uploadDataRepository,
     UserManager <ApplicationUser> userManager,
     IRoleHelper roleHelper) : base(context, userManager)
 {
     _testingService       = testingService;
     _accessService        = accessService;
     _uploadDataRepository = uploadDataRepository;
     _roleHelper           = roleHelper;
 }
 public SyncService(
     IPlantService plantService,
     IGraphService graphService,
     IPersonService personService,
     IAccessService accessService,
     ILogger <SyncService> logger)
 {
     _plantService  = plantService;
     _graphService  = graphService;
     _personService = personService;
     _accessService = accessService;
     _logger        = logger;
 }
示例#26
0
 public AccessesController(IAccessService accessService, IUserRepository userRepository,
                           ISmartLockRepository smartLockRepository, IAzureAdRepository azureAdRepository, IMapper mapper)
 {
     _accessService = accessService ??
                      throw new ArgumentNullException(nameof(accessService));
     _userRepository = userRepository ??
                       throw new ArgumentNullException(nameof(userRepository));
     _smartLockRepository = smartLockRepository ??
                            throw new ArgumentNullException(nameof(smartLockRepository));
     _azureAdRepository = azureAdRepository ??
                          throw new ArgumentNullException(nameof(azureAdRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
示例#27
0
 public LogInViewModel(IAccessService accessService, IRegionManager regionManager, INotificationService notificationService)
 {
     SignInCommand = new DelegateCommand(async() => await SignIn(), CanSignIn)
                     .ObservesProperty(() => Username)
                     .ObservesProperty(() => Password);
     RegisterCommand = new DelegateCommand(async() => await Register(), CanRegister)
                       .ObservesProperty(() => Username)
                       .ObservesProperty(() => Email)
                       .ObservesProperty(() => Password)
                       .ObservesProperty(() => ConfirmPassword);
     ClearCommand         = new DelegateCommand(OnClear);
     _accessService       = accessService;
     _regionManager       = regionManager;
     _notificationService = notificationService;
 }
 public SecurityClientViewModel(IAccessService accessService)
 {
     this.accessService = accessService;
     ValidateAccess = new DelegateCommand(OnValidateAccess, x => !string.IsNullOrEmpty(securityKey));
     results = new List<string>();
     predefinedKeys = new List<string>
                          {
                              "blue, green blue, yellow red, orange red, green yellow, red orange, purple",
                              "blue, green blue, yellow red, orange red, green yellow, red orange, red",
                              "blue, green blue, green blue, yellow green, yellow orange, red red, green red, orange yellow, blue yellow, red",
                          };
     UsePredefinedKeyOneCommand = new DelegateCommand(() => SecurityKey = predefinedKeys[0]);
     UsePredefinedKeyTwoCommand = new DelegateCommand(() => SecurityKey = predefinedKeys[1]);
     UsePredefinedKeyThreeCommand = new DelegateCommand(() => SecurityKey = predefinedKeys[2]);
 }
示例#29
0
 public AccessController(
     IMapper mapper,
     mydbContext context,
     IAccessService accessService,
     IUserService userService,
     IOptions <AppSettings> appSettings,
     IMailService mailService)
 {
     _context       = context;
     _mapper        = mapper;
     _userService   = userService;
     _accessService = accessService;
     _appSettings   = appSettings.Value;
     _mailService   = mailService;
 }
示例#30
0
 public DemoViewModel(IAccessService accessService, INotificationService notificationService)
 {
     _accessService       = accessService;
     _notificationService = notificationService;
     _timer = new Timer(3000)
     {
         AutoReset = true
     };
     _timer.Elapsed += (sender, args) => ChangeTurn();
     BindingOperations.EnableCollectionSynchronization(Board, new object());
     StartGameCommand = new DelegateCommand(async() =>
     {
         var whiteNetwork = await _accessService.GetByGeneration(WhiteGeneration);
         var blackNetwork = await _accessService.GetByGeneration(BlackGeneration);
         _whitePlayer     = EvolutionService.GetPlayer(whiteNetwork.Network);
         _blackPlayer     = EvolutionService.GetPlayer(blackNetwork.Network);
         Reset();
         _timer.Start();
     });
 }
        public AccessServiceTests()
        {
            var personCreatedByCache = new PersonCreatedByCache(111)
            {
                Username = "******"
            };

            _personService        = new Mock <IPersonService>();
            _personProjectService = new Mock <IPersonProjectService>();
            _plantService         = new Mock <IPlantService>();
            _unitOfWork           = new Mock <IUnitOfWork>();
            _logger  = new Mock <ILogger <AccessService> >();
            _service = new AccessService(
                _personService.Object,
                _personProjectService.Object,
                _plantService.Object,
                _logger.Object,
                _unitOfWork.Object,
                personCreatedByCache);
        }
示例#32
0
        public CuentaController(IHandlerExcepciones manejadorExcepciones,
                                IUsuarioRepository <Usuario> repository, IAccessService accessService,
                                IApplication application, IRolService rolService,
                                IExternalInfoUserProvider externalInfoUserProvider,
                                IParametroService parametroService,
                                IRepository <Persona> repositoryPersona) :
            base(manejadorExcepciones)
        {
            _repository = repository;

            _accessService = accessService;

            _application = application;

            _rolService = rolService;

            _externalInfoUserProvider = externalInfoUserProvider;

            _parametroService = parametroService;

            _repositoryPersona = repositoryPersona;
        }
示例#33
0
 public EmailsForCallController(IRepository<EmailsForCall> emailsforcallRepository, IAccessService accessService, IEmailService emailService)
 {
     _emailsforcallRepository = emailsforcallRepository;
     _accessService = accessService;
     _emailService = emailService;
 }
示例#34
0
 public EmailQueueController(IRepository<EmailQueue> emailqueueRepository, IAccessService accessService)
 {
     _emailqueueRepository = emailqueueRepository;
     _accessService = accessService;
 }
 public AccessRouteConstraint(string accessType)
 {
     _accessService = DependencyResolver.Current.GetService(typeof(IAccessService)) as IAccessService;
     _accessType = accessType;
     _tenantService = DependencyResolver.Current.GetService(typeof(ITenantService)) as ITenantService;
 }
示例#36
0
 public CallForProposalController(IRepository<CallForProposal> callforproposalRepository, IAccessService accessService)
 {
     _callforproposalRepository = callforproposalRepository;
     _accessService = accessService;
 }
示例#37
0
 public EmailTemplateController(IRepository<EmailTemplate> emailtemplateRepository, IAccessService accessService)
 {
     _emailtemplateRepository = emailtemplateRepository;
     _accessService = accessService;
 }