コード例 #1
0
 public AssignmentsController(
     IAlbaCredentialService albaCredentialService,
     IAlbaCredentials credentials,
     ILogger <AssignmentsController> logger,
     IOptions <WebUIOptions> optionsAccessor)
 {
     this.albaCredentialService = albaCredentialService;
     this.logger = logger;
     options     = optionsAccessor.Value;
 }
コード例 #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 AuthorizedController(
     MainDbContext database,
     IStringLocalizer <AuthorizedController> localizer,
     IAlbaCredentials credentials,
     IAuthorizationService authorizationService,
     IAlbaCredentialService albaCredentialService,
     IOptions <WebUIOptions> optionsAccessor)
 {
     this.database              = database;
     this.localizer             = localizer;
     account                    = credentials.Account;
     user                       = credentials.User;
     password                   = credentials.Password;
     this.authorizationService  = authorizationService;
     this.albaCredentialService = albaCredentialService;
     options                    = optionsAccessor.Value;
 }
コード例 #5
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;
 }
コード例 #6
0
 public ShortUrlsController(
     MainDbContext database,
     IShortUrlService service,
     IStringLocalizer <AuthorizedController> localizer,
     IAlbaCredentials credentials,
     WebUI.Services.IAuthorizationService authorizationService,
     IAlbaCredentialService albaCredentialService,
     IOptions <WebUIOptions> optionsAccessor) : base(
         database,
         localizer,
         credentials,
         authorizationService,
         albaCredentialService,
         optionsAccessor)
 {
     this.service = service;
     _hostName    = optionsAccessor.Value.UrlShortenerDomain;
 }