Skip to content

Commit

Permalink
Update Src/VTEX/VTEXWrapper.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
gitauto-ai[bot] authored Nov 8, 2024
1 parent 8b53276 commit ccd4e3c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Src/VTEX/VTEXWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,15 @@ private async Task<string> ServiceInvokerInternal(

private readonly IHttpClientFactory _httpClientFactory;

public VTEXWrapper(IHttpClientFactory httpClientFactory)
public VTEXWrapper(ILoggerFactory loggerFactory, IHttpClientFactory httpClientFactory)
{
if (loggerFactory == null)
{
throw new ArgumentNullException(nameof(loggerFactory));
}

_logger = loggerFactory.CreateLogger<VTEXWrapper>();
_httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory));
LogConsumer.Debug(uriBuilder.ToString());

_httpClientFactory = httpClientFactory;
Expand Down

0 comments on commit ccd4e3c

Please sign in to comment.