コード例 #1
0
 public CotacolApiUserClient(IHttpContextAccessor contextAccessor, ICotacolClient cotacolDataClient,
                             ILogger <CotacolApiUserClient> logger, IOptions <CotacolApiSettings> settings)
 {
     Guard.NotNull(settings?.Value, nameof(settings));
     _context           = contextAccessor;
     _cotacolDataClient = cotacolDataClient;
     _logger            = logger;
     _settings          = settings.Value;
 }
コード例 #2
0
 public ExternalLoginModel(
     SignInManager <CotacolUser> signInManager,
     IHttpContextAccessor contextAccessor,
     UserManager <CotacolUser> userManager,
     ILogger <ExternalLoginModel> logger,
     ICotacolClient cotacolClient,
     IOptions <CotacolApiSettings> apiSettings,
     IEmailSender emailSender)
 {
     _contextAccessor = contextAccessor;
     _signInManager   = signInManager;
     _userManager     = userManager;
     _logger          = logger;
     _emailSender     = emailSender;
     _cotacolClient   = cotacolClient;
     _apiSettings     = apiSettings.Value;
 }