/// <summary> /// Initializes a new instance of the <see cref="OAuthHttpMessageHandler"/> class, /// with the given delegate handler. /// </summary> /// <param name="config">OAuth config.</param> /// <param name="innerHandler">The handler to delegate to.</param> public OAuthHttpMessageHandler(OAuthConfig config, HttpMessageHandler innerHandler) : base(innerHandler) { this.headerFactory = new OAuthHeaderFactory(config); }
/// <summary> /// Initializes a new instance of the <see cref="OAuthHttpMessageHandler"/> class, /// with the default delegate handler /// </summary> /// <param name="config">OAuth config.</param> public OAuthHttpMessageHandler(OAuthConfig config) : this(config, new HttpClientHandler()) { }