コード例 #1
0
 public AdministrationController(IConfiguration configuration, ILogger logger, IUser user, IUserPolicy userPolicy, IClient client, IConsumptionHistory consumptionHistory, IEmailManager emailManager, IClienAnswer clientAnswer, IClientModule clientModule)
 {
     _configuration      = configuration;
     _logger             = logger;
     _user               = user;
     _userPolicy         = userPolicy;
     _client             = client;
     _consumptionHistory = consumptionHistory;
     _emailmanager       = emailManager;
     _scoreByQuestion    = configuration.GetValue <double>("DetailScore:Score") / ((configuration.GetValue <double>("DetailScore:Modules")) + 1);
     _clientAnswer       = clientAnswer;
     _clientModule       = clientModule;
 }
コード例 #2
0
 public ClientServiceController(IConfiguration configuration, ILogger logger, IUser user, IUserPolicy userPolicy, IClient client, IConsumptionHistory consumptionHistory, ITokenManger tokenManager, IRefreshToken refreshToken, IModule module, IClienAnswer clientAnswer, IClientModule clientModule, IEmailManager emailManager)
 {
     _configuration              = configuration;
     _logger                     = logger;
     _user                       = user;
     _userPolicy                 = userPolicy;
     _client                     = client;
     _consumptionHistory         = consumptionHistory;
     _tokenManager               = tokenManager;
     _timeExpirationTokenRefresh = configuration.GetValue <double>("JwtSettings:TimeExpirationTokenRefresh");
     _refreshToken               = refreshToken;
     _module                     = module;
     _scoreByQuestion            = configuration.GetValue <double>("DetailScore:Score") / ((configuration.GetValue <double>("DetailScore:Modules")) + 1);
     _clientAnswer               = clientAnswer;
     _clientModule               = clientModule;
     _emailmanager               = emailManager;
 }