Skip to content

Commit

Permalink
refactor: mark urls obsolete in Configuration, in favor of the Vonage…
Browse files Browse the repository at this point in the history
…Urls property
  • Loading branch information
Tr00d committed Feb 8, 2024
1 parent 00197f5 commit 55c138a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Vonage/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public HttpClient Client
/// <summary>
/// Retrieves the Europe Api Url.
/// </summary>
[Obsolete("Favor the Urls property instead.")]
[Obsolete("Favor the VonageUrls property instead.")]
public Uri EuropeApiUrl => this.FetchApiUrlEurope();

/// <summary>
Expand All @@ -89,6 +89,7 @@ public HttpClient Client
/// <summary>
/// Retrieves the Nexmo Api Url.
/// </summary>
[Obsolete("Favor the VonageUrls property instead.")]
public Uri NexmoApiUrl => this.Settings["appSettings:Vonage.Url.Api"] is null
? this.VonageUrls.Nexmo
: new Uri(this.Settings["appSettings:Vonage.Url.Api"]);
Expand All @@ -104,6 +105,7 @@ public HttpClient Client
/// <summary>
/// Retrieves the Rest Api Url.
/// </summary>
[Obsolete("Favor the VonageUrls property instead.")]
public Uri RestApiUrl => this.Settings["appSettings:Vonage.Url.Rest"] is null
? this.VonageUrls.Rest
: new Uri(this.Settings["appSettings:Vonage.Url.Rest"]);
Expand Down Expand Up @@ -131,6 +133,7 @@ public HttpClient Client
/// <summary>
/// Retrieves the Video Api Url.
/// </summary>
[Obsolete("Favor the VonageUrls property instead.")]
public Uri VideoApiUrl => this.Settings["appSettings:Vonage.Url.Api.Video"] is null
? this.VonageUrls.Video
: new Uri(this.Settings["appSettings:Vonage.Url.Api.Video"]);
Expand Down

0 comments on commit 55c138a

Please sign in to comment.