Skip to content

Commit

Permalink
common lib-update (#18)
Browse files Browse the repository at this point in the history
* common lib update to v12.1.0
  • Loading branch information
Ba-Ski authored Apr 12, 2023
1 parent bef4fc6 commit d5e2e87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ATI.Services.Consul/ATI.Services.Consul.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</PropertyGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="atisu.services.common" Version="11.3.0" />
<PackageReference Include="atisu.services.common" Version="12.1.0" />
<PackageReference Include="Consul" Version="0.7.2.6" />
</ItemGroup>
</Project>
12 changes: 6 additions & 6 deletions ATI.Services.Consul/ConsulMetricsHttpClientWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
using ATI.Services.Common.Behaviors;
using ATI.Services.Common.Logging;
using ATI.Services.Common.Metrics;
using ATI.Services.Common.Metrics.HttpWrapper;
using ATI.Services.Common.Options;
using ATI.Services.Common.Tracing;
using JetBrains.Annotations;
using Newtonsoft.Json;
using NLog;
Expand All @@ -21,8 +21,8 @@ namespace ATI.Services.Consul
public class ConsulMetricsHttpClientWrapper
{
private readonly BaseServiceOptions _serviceOptions;
private readonly TracingHttpClientWrapper _clientWrapper;
private readonly MetricsTracingFactory _metricsTracingFactory;
private readonly MetricsHttpClientWrapper _clientWrapper;
private readonly MetricsFactory _metricsTracingFactory;
private readonly ConsulServiceAddress _serviceAddress;
private readonly ILogger _logger = LogManager.GetCurrentClassLogger();

Expand All @@ -33,13 +33,13 @@ public ConsulMetricsHttpClientWrapper(
JsonSerializerOptions systemTextJsonOptions = null)
{
_serviceOptions = serviceOptions;
_metricsTracingFactory = MetricsTracingFactory.CreateHttpClientMetricsFactory(adapterName,
_metricsTracingFactory = MetricsFactory.CreateHttpClientMetricsFactory(adapterName,
serviceOptions.ConsulName, serviceOptions.LongRequestTime);

_serviceAddress =
new ConsulServiceAddress(serviceOptions.ConsulName, serviceOptions.Environment);

var config = new TracedHttpClientConfig(serviceOptions.ConsulName, serviceOptions.TimeOut,
var config = new MetricsHttpClientConfig(serviceOptions.ConsulName, serviceOptions.TimeOut,
serviceOptions.SerializerType, serviceOptions.AddCultureToRequest, newtonsoftSettings, systemTextJsonOptions)
{
LogLevelOverride = serviceOptions.LogLevelOverride,
Expand All @@ -52,7 +52,7 @@ public ConsulMetricsHttpClientWrapper(
config.Headers.TryAdd(header.Key, header.Value);
}

_clientWrapper = new TracingHttpClientWrapper(config);
_clientWrapper = new MetricsHttpClientWrapper(config);
}

#region Get
Expand Down

0 comments on commit d5e2e87

Please sign in to comment.