public QuestionService(HttpClientService factory, IHttpContextAccessor httpContextAccessor, ISurveysTokenService surveysTokenService) { _httpContextAccessor = httpContextAccessor; _httpClient = factory.GetHttpClient(); _surveysTokenService = surveysTokenService; _cancellationToken = httpContextAccessor?.HttpContext?.RequestAborted ?? CancellationToken.None; }
/// <summary> /// Initializes a new instance of <see cref="Tailspin.Surveys.Web.Security.SignInManager"/>; /// </summary> /// <param name="contextAccessor">An instance of <see cref="Microsoft.AspNetCore.Http.IHttpContextAccessor"/> used to get access to the current HTTP context.</param> /// <param name="surveysTokenService">An instance of <see cref="Tailspin.Surveys.Web.Security.ISurveysTokenService"/></param> /// <param name="logger">An <see cref="Microsoft.Extensions.Logging.ILogger"/> implementation used for diagnostic information.</param> public SignInManager(IHttpContextAccessor contextAccessor, ISurveysTokenService surveysTokenService, ILogger <SignInManager> logger) { _httpContext = contextAccessor.HttpContext; _surveysTokenService = surveysTokenService; _logger = logger; }
/// <summary> /// Initializes a new instance of <see cref="Tailspin.Surveys.Web.Security.SignInManager"/>; /// </summary> /// <param name="contextAccessor">An instance of <see cref="Microsoft.AspNetCore.Http.IHttpContextAccessor"/> used to get access to the current HTTP context.</param> /// <param name="surveysTokenService">An instance of <see cref="Tailspin.Surveys.Web.Security.ISurveysTokenService"/></param> /// <param name="logger">An <see cref="Microsoft.Extensions.Logging.ILogger"/> implementation used for diagnostic information.</param> public SignInManager(IHttpContextAccessor contextAccessor, ISurveysTokenService surveysTokenService, ILogger<SignInManager> logger) { _httpContext = contextAccessor.HttpContext; _surveysTokenService = surveysTokenService; _logger = logger; }