Table of Contents

Class VonageHttpClientConfiguration

Namespace
Vonage.Common.Client
Assembly
Vonage.dll

Represents the configuration for all Vonage Clients.

public record VonageHttpClientConfiguration : IEquatable<VonageHttpClientConfiguration>
Inheritance
VonageHttpClientConfiguration
Implements
Inherited Members

Constructors

VonageHttpClientConfiguration(HttpClient, Result<AuthenticationHeaderValue>, string)

Represents the configuration for all Vonage Clients.

public VonageHttpClientConfiguration(HttpClient HttpClient, Result<AuthenticationHeaderValue> AuthenticationHeader, string UserAgent)

Parameters

HttpClient HttpClient

HttpClient to used for further connections.

AuthenticationHeader Result<AuthenticationHeaderValue>

AuthenticationHeader to be used for further connections.

UserAgent string

Value to be used in the user-agent header of each request.

Properties

AuthenticationHeader

AuthenticationHeader to be used for further connections.

public Result<AuthenticationHeaderValue> AuthenticationHeader { get; init; }

Property Value

Result<AuthenticationHeaderValue>

HttpClient

HttpClient to used for further connections.

public HttpClient HttpClient { get; init; }

Property Value

HttpClient

UserAgent

Value to be used in the user-agent header of each request.

public string UserAgent { get; init; }

Property Value

string