Пример #1
0
        protected UserService(
            IGametekiDbContext context,
            IOptions <AuthTokenOptions> optionsAccessor,
            IOptions <GametekiApiOptions> lobbyOptions,
            IEmailSender emailSender,
            IViewRenderService viewRenderService,
            ILogger <UserService> logger,
            IStringLocalizer <UserService> localizer)
        {
            if (lobbyOptions == null)
            {
                throw new ArgumentNullException(nameof(lobbyOptions));
            }

            if (optionsAccessor == null)
            {
                throw new ArgumentNullException(nameof(optionsAccessor));
            }

            this.context           = context;
            apiOptions             = lobbyOptions.Value;
            this.emailSender       = emailSender;
            this.viewRenderService = viewRenderService;
            this.logger            = logger;
            t = localizer;

            tokenOptions = optionsAccessor.Value;
        }
Пример #2
0
 public KeytekiUserService(
     IGametekiDbContext context,
     IOptions<AuthTokenOptions> optionsAccessor,
     IOptions<GametekiApiOptions> lobbyOptions,
     IEmailSender emailSender,
     IViewRenderService viewRenderService,
     ILogger<UserService> logger,
     IStringLocalizer<UserService> localizer)
     : base(context, optionsAccessor, lobbyOptions, emailSender, viewRenderService, logger, localizer)
 {
 }
Пример #3
0
 public MessageService(IGametekiDbContext context, ILogger <MessageService> logger)
 {
     this.context = context;
     this.logger  = logger;
 }
 public ThronetekiUserService(IGametekiDbContext context, UserManager <GametekiUser> userManager, IOptions <AuthTokenOptions> optionsAccessor, IOptions <GametekiApiOptions> apiOptions, IEmailSender emailSender, IViewRenderService viewRenderService, ILogger <UserService> logger)
     : base(context, userManager, optionsAccessor, apiOptions, emailSender, viewRenderService, logger)
 {
 }
Пример #5
0
 public NewsService(IGametekiDbContext context, ILogger <NewsService> logger)
 {
     this.context = context;
     this.logger  = logger;
 }