Example #1
0
 public ContentController(IHostingEnvironment appEnvironment,
                          IContentService contentService,
                          IAutorizationService autorizationService)
 {
     _appEnvironment      = appEnvironment;
     _contentService      = contentService;
     _autorizationService = autorizationService;
 }
 public UpdateController(IContentService contentService,
                         IAutorizationService autorizationService,
                         IOptions <UpdateCatalog> options)
 {
     _contentService      = contentService;
     _autorizationService = autorizationService;
     _options             = options;
 }
Example #3
0
 public MapController(IContentService contentService,
                      IAutorizationService autorizationService,
                      IOptions <MapCatalog> options,
                      IOptions <OperationSystem> os)
 {
     _contentService      = contentService;
     _autorizationService = autorizationService;
     _options             = options;
     _os = os;
 }
Example #4
0
 public SignInViewModel(INavigationService navigationService,
                        IAutorizationService autorization,
                        IProfileService profileService,
                        IAutentificationService autentification)
 {
     _navigationService = navigationService;
     _autorization      = autorization;
     _profileService    = profileService;
     _autentification   = autentification;
 }
 public AddEditProfileViewModel(INavigationService navigationService,
                                IRepository repository,
                                IAutorizationService autorization,
                                IProfileService profile)
 {
     _navigationService = navigationService;
     _repository        = repository;
     _autorization      = autorization;
     _profile           = profile;
 }
        public void OnActionExecuting(ActionExecutingContext context)
        {
            _autorizationService = GetService(context, typeof(IAutorizationService));

            if (_autorizationService == null)
            {
                context.Result = new StatusCodeResult(500);
            }

            if (!_autorizationService.IsUserFrom1CByBase64(GetToken(context)))
            {
                context.Result = new UnauthorizedResult();
            }
        }
Example #7
0
        public SignUpViewModel(INavigationService navigationService,
                               IRepository repository,
                               IAutorizationService autorization,
                               IProfileService profile,
                               IAutentificationService autentification)
        {
            _navigationService = navigationService;
            _repository        = repository;
            _autorization      = autorization;
            _profile           = profile;
            _autentification   = autentification;

            Regs = new ObservableCollection <RegistrateModel>();
        }
        public QueueDeliveryBindFunction()
        {
            var _serviceProvider = new StartInjection().ServiceProvider;

            _configuration       = _serviceProvider.GetService <IConfiguration>();
            _pedidoService       = _serviceProvider.GetService <IPedidoService>();
            _autorizationService = _serviceProvider.GetService <IAutorizationService>();

            _kafkaHost  = _configuration["Kafka:host"];
            _kafkaTopic = _configuration["Kafka:topic"];
            int.TryParse(_configuration["Kafka:port"], out _kafkaPort);

            _userToken     = _configuration["EndPointDroneDelivery:UserToken"];
            _passwordToken = _configuration["EndPointDroneDelivery:PaswwordToken"];

            TokenConsumer();
        }
 public AutorizationController(IAutorizationService service, IOptions <JwtTokenOptions> jwtTokenOptions)
 {
     _jwtTokenOptions = jwtTokenOptions.Value;
     _service         = service;
 }
Example #10
0
 public StreamController(IContentService contentService,
                         IAutorizationService autorizationService)
 {
     _contentService      = contentService;
     _autorizationService = autorizationService;
 }
 public TokenController(UserManager <Manager> userManager,
                        IAutorizationService autorizationService)
 {
     _userManager         = userManager;
     _autorizationService = autorizationService;
 }
Example #12
0
 public OtrsClient(string address, IAutorizationService autorizationService)
 {
     this.Address = address;
     _service     = autorizationService;
 }
 public MemberController(IAutorizationService autorizationService)
 {
     _autorizationService = autorizationService;
 }
Example #14
0
 public ProfileService(IRepository repository,
                       IAutorizationService autorizationService)
 {
     _repository          = repository;
     _autorizationService = autorizationService;
 }