public OAuthTokenHandler(IOAuthAgent oAuthAgent) { _oAuthAgent = oAuthAgent ?? throw new ArgumentNullException(nameof(oAuthAgent)); }
public OAuthTokenHandler(IOAuthAgent oAuthAgent, IOptions <TServiceAgentSettings> serviceAgentOptions) { _oAuthAgent = oAuthAgent ?? throw new ArgumentNullException(nameof(oAuthAgent)); _settings = serviceAgentOptions?.Value ?? throw new ArgumentNullException(nameof(serviceAgentOptions)); }