public AccountController(UserManager <User> userManager,
                          SignInManager <User> signInManager,
                          IJwtTokenSource tokenSource)
 {
     this.userManager   = userManager;
     this.signInManager = signInManager;
     this.tokenSource   = tokenSource;
 }
 public HttpRequestBuilder
 (
     IJwtTokenSource tokenSource,
     IContentSerializer serializer
 )
 {
     _tokenSource = tokenSource;
     _serializer  = serializer ?? throw new ArgumentNullException(nameof(serializer));
 }
Example #3
0
 public HttpServiceAddAuthorizationHeader
 (
     IJwtTokenSource tokenSource,
     IHttpService next
 )
 {
     _tokenSource = tokenSource ?? throw new ArgumentNullException(nameof(tokenSource));
     _next        = next ?? throw new ArgumentNullException(nameof(next));
 }