Skip to content

ExchangeRatesClient Constructors

Maurizio Basaglia edited this page Nov 19, 2020 · 2 revisions

Constructors

Namespace: BIExchangeRates.Client
Assembly: BIExchangeRates.Client.dll

Initializes a new instance of the ExchangeRatesClient class.

Overloads

Overload Description
ExchangeRatesClient() Initializes a new instance of the ExchangeRatesClient class using a HttpClientHandler that is disposed when this instance is disposed.
ExchangeRatesClient(HttpMessageHandler) Initializes a new instance of the ExchangeRatesClient class with the specified handler. The handler is disposed when this instance is disposed.
ExchangeRatesClient(HttpMessageHandler, Boolean) Initializes a new instance of the ExchangeRatesClient class with the provided handler, and specifies whether that handler should be disposed when this instance is disposed.

ExchangeRatesClient()

Initializes a new instance of the ExchangeRatesClient class using a HttpClientHandler that is disposed when this instance is disposed.

public ExchangeRatesClient ();

ExchangeRatesClient(HttpMessageHandler)

Initializes a new instance of the ExchangeRatesClient class with the specified handler. The handler is disposed when this instance is disposed.

public ExchangeRatesClient (HttpMessageHandler handler);

Parameters

Parameter Type Description
handler HttpMessageHandler The HttpMessageHandler responsible for processing the HTTP response messages.

ExchangeRatesClient(HttpMessageHandler, Boolean)

Initializes a new instance of the ExchangeRatesClient class with the provided handler, and specifies whether that handler should be disposed when this instance is disposed.

public ExchangeRatesClient (HttpMessageHandler handler, bool disposeHandler);

Parameters

Parameter Type Description
handler HttpMessageHandler The HttpMessageHandler responsible for processing the HTTP response messages.
disposeHandler Boolean true if the inner handler should be disposed of by ExchangeRatesClient.Dispose; false if you intend to reuse the inner handler.
Clone this wiki locally