-
Notifications
You must be signed in to change notification settings - Fork 0
ExchangeRatesClient Constructors
Maurizio Basaglia edited this page Nov 19, 2020
·
2 revisions
Namespace: BIExchangeRates.Client
Assembly: BIExchangeRates.Client.dll
Initializes a new instance of the ExchangeRatesClient class.
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. |
Initializes a new instance of the ExchangeRatesClient
class using a HttpClientHandler
that is disposed when this instance is disposed.
public ExchangeRatesClient ();
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);
Parameter | Type | Description |
---|---|---|
handler | HttpMessageHandler | The HttpMessageHandler responsible for processing the HTTP response messages. |
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);
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. |