Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
Mstaheri committed Sep 9, 2024
1 parent c4ed0bf commit 4be687b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class SmsServiceRepositorieQuery : ISmsServiceRepositorieQuery
private readonly AsyncFallbackPolicy<OperationResult> _fallbackPolicy;
private static AsyncCircuitBreakerPolicy _circuitBreakerPolicy;
private readonly HttpClient _httpClient;
private const string Url = "6C6247593962355A50793635692B6B58344D586C6537536768484B394F5442316472454B6F66494D7941413D";
public const string Url = "https://api.kavenegar.com/v1/{0}/verify/lookup.json";
public SmsServiceRepositorieQuery(IHttpClientFactory httpClientFactory)
{
_fallbackPolicy = Policy<OperationResult>.Handle<Exception>().FallbackAsync
Expand All @@ -38,7 +38,7 @@ public async Task<OperationResult> SendAsync
{
var result = await _circuitBreakerPolicy.ExecuteAsync(async () =>
{
string url = string.Format(ConstMessages.Url, apiUrl);
string url = string.Format(Url, apiUrl);
var conTent = new FormUrlEncodedContent(new[]
{
new KeyValuePair<string, string>("receptor",Receptor),
Expand Down

0 comments on commit 4be687b

Please sign in to comment.