public HttpClientBuilder WithBearerAuthorisationHeader(IGenerateBearerToken tokenGenerator) { var newHandler = new SecurityMessageHandler(tokenGenerator); AddHandlerToChain(newHandler); return(this); }
public SecurityMessageHandler(IGenerateBearerToken generator) { _generator = generator; }