public HttpClientBuilder WithBearerAuthorisationHeader(IGenerateBearerToken tokenGenerator)
        {
            var newHandler = new SecurityMessageHandler(tokenGenerator);

            AddHandlerToChain(newHandler);

            return(this);
        }
Example #2
0
 public SecurityMessageHandler(IGenerateBearerToken generator)
 {
     _generator = generator;
 }