コード例 #1
0
        public AuthorizationController(ILogger <AuthorizationController> logger, IAuthorizationService authoriaztionService, IMapper mapper)

        {
            _logger = logger;
            _authoriaztionService = authoriaztionService;
            _mapper = mapper;
        }
コード例 #2
0
 public TerritoryUserController(
     MainDbContext database,
     IStringLocalizer <AuthorizedController> localizer,
     IAlbaCredentials credentials,
     Services.IAuthorizationService authorizationService,
     IAlbaCredentialService albaCredentialService,
     IOptions <WebUIOptions> optionsAccessor)
     : base(
         database,
         localizer,
         credentials,
         authorizationService,
         albaCredentialService,
         optionsAccessor)
 {
 }
コード例 #3
0
 public HomeController(
     MainDbContext database,
     IStringLocalizer <AuthorizedController> localizer,
     IAlbaCredentials credentials,
     Services.IAuthorizationService authorizationService,
     Services.IQRCodeActivityService qrCodeActivityService,
     IAlbaCredentialService albaCredentialService,
     IOptions <WebUIOptions> optionsAccessor) : base(
         database,
         localizer,
         credentials,
         authorizationService,
         albaCredentialService,
         optionsAccessor)
 {
     this.qrCodeActivityService = qrCodeActivityService;
 }
コード例 #4
0
 public ReportController(
     MainDbContext database,
     IAccountLists accountLists,
     IStringLocalizer <AuthorizedController> localizer,
     IAlbaCredentials credentials,
     Services.IAuthorizationService authorizationService,
     IAlbaCredentialService albaCredentialService,
     IOptions <WebUIOptions> optionsAccessor) : base(
         database,
         localizer,
         credentials,
         authorizationService,
         albaCredentialService,
         optionsAccessor)
 {
     this.accountLists = accountLists;
 }
コード例 #5
0
        public ShellViewModel(            
            [Import] IBackgroundExecutor backgroundExecutor,
            [Import] IEventAggregator eventAggregator,
            [Import] IDialogService dialogs,
            [Import] Services.IAuthorizationService authorizator)
        {
            AlertMessageViewModel = new MessageBoxViewModel();

                this.executor = backgroundExecutor;
                this.aggregator = eventAggregator;
                this.dialogs = dialogs;
                this.authorizator = authorizator;

                signinMenuText = Properties.Resources.Sign_in;

                aggregator.Subscribe(ScrumFactoryEvent.ShowFullScreen, () => { IsOnTaskMode = false; });
                aggregator.Subscribe<Task>(ScrumFactoryEvent.ShowTaskDetail, t => { IsOnTaskMode = false; }, 10);

                //aggregator.Subscribe(ScrumFactoryEvent.ApplicationWhentForeground, () => { IsOnTaskMode = true; });

                aggregator.Subscribe<MemberProfile>(ScrumFactoryEvent.SignedMemberChanged, OnMemberSignin);

                aggregator.Subscribe<Project>(ScrumFactoryEvent.ProjectDetailsChanged, p => { SelectedProject = p; });

                aggregator.Subscribe<Project>(ScrumFactoryEvent.ViewProjectDetails, ViewProjectDetails);

                aggregator.Subscribe<bool>(ScrumFactoryEvent.Signing,
                    signing => {
                        if (signing) {
                            IsSigning = true;
                            SigninMenuText = Properties.Resources.Sigining;
                        }
                        else {
                            IsSigning = false;
                            SigninMenuText = Properties.Resources.Sign_in;
                        }
                    });

                SignInCommand = new DelegateCommand(() => {
                    //CloseAllChildWindows();
                    eventAggregator.Publish(ScrumFactoryEvent.ShowLogin);
                });

                MoveWindowCommand = new DelegateCommand(() => { View.DragMove(); });
                CloseWindowCommand = new DelegateCommand(Close);
                MinimizeWindowCommand = new DelegateCommand(Minimize);

                ShowMyProfileCommand = new DelegateCommand(ShowMyProfile);

                ShowAboutDialogCommand = new DelegateCommand(ShowAboutDialog);

                ShowWhatIsNewCommand = new DelegateCommand(ShowWhatIsNewDialog);

                ShowOwnersListCommand = new DelegateCommand(CanShowOwnersList, ShowOwnersList);

                RefreshCommand = new DelegateCommand(Refresh);

                ShowHideTopMenuCommand = new DelegateCommand(ShowHideTopMenu);

                ShowMyTasksCommand = new DelegateCommand(ShowMyTasks);

                ShowOptionsCommand = new DelegateCommand(ShowOptions);

                ShowFactorySettingsCommand = new DelegateCommand(CanShowOwnersList, ShowFactorySettings);
        }
コード例 #6
0
 public FaceShapeLinksController(hair_project_dbContext context, Services.IAuthorizationService authorizationService)
 {
     _context = context;
     _authorizationService = authorizationService;
 }
コード例 #7
0
 public HairStyleLinksController(hairdressing_project_dbContext context, Services.IAuthorizationService authorizationService)
 {
     _context = context;
     _authorizationService = authorizationService;
 }
コード例 #8
0
 public UserFeaturesController(hair_project_dbContext context, Services.IAuthorizationService authorizationService)
 {
     _context = context;
     _authorizationService = authorizationService;
 }
コード例 #9
0
 public HairLengthsController(hair_project_dbContext context, Services.IAuthorizationService authorizationService)
 {
     _context = context;
     _authorizationService = authorizationService;
 }
コード例 #10
0
 public AuthorizationController(Services.IAuthorizationService authorizationService)
 {
     _authorizationService = authorizationService;
 }
コード例 #11
0
 public ProtectedAuthorizationHandler(ILogger <ProtectedAuthorizationHandler> logger, Services.IAuthorizationService authorizationService)
 {
     this.logger = logger;
     this.authorizationService = authorizationService;
 }