Skip to content

Commit

Permalink
Merge pull request #6 from IliyanIlievPH/2
Browse files Browse the repository at this point in the history
Closes #2
  • Loading branch information
PaterSantyago committed Apr 6, 2020
2 parents 9de97df + e33306f commit aecab1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Autofac;
using Autofac;
using JetBrains.Annotations;
using Lykke.HttpClientGenerator;
using Lykke.HttpClientGenerator.Infrastructure;
Expand Down Expand Up @@ -30,7 +30,7 @@ public static class AutofacExtension
if (string.IsNullOrWhiteSpace(settings.ServiceUrl))
throw new ArgumentException("Value cannot be null or whitespace.", nameof(NotificationSystemBrokerServiceClientSettings.ServiceUrl));

var clientBuilder = HttpClientGenerator.HttpClientGenerator.BuildForUrl(settings.ServiceUrl)
var clientBuilder = HttpClientGenerator.BuildForUrl(settings.ServiceUrl)
.WithAdditionalCallsWrapper(new ExceptionHandlerCallsWrapper());

clientBuilder = builderConfigure?.Invoke(clientBuilder) ?? clientBuilder.WithoutRetries();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using Lykke.HttpClientGenerator;
using Lykke.HttpClientGenerator.Infrastructure;
using Lykke.HttpClientGenerator.Retries;
Expand Down Expand Up @@ -40,7 +40,7 @@ public PushProviderClient(string serviceUrl, TimeSpan timeout, int retriesCount)

private void InitializeClient()
{
var clientBuilder = HttpClientGenerator.HttpClientGenerator.BuildForUrl(_serviceUrl)
var clientBuilder = HttpClientGenerator.BuildForUrl(_serviceUrl)
.WithAdditionalCallsWrapper(new ExceptionHandlerCallsWrapper())
.WithRetriesStrategy(new LinearRetryStrategy(_timeout, _retriesCount));

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System;
using Lykke.HttpClientGenerator;
using Lykke.HttpClientGenerator.Infrastructure;
using Lykke.HttpClientGenerator.Retries;

Expand Down Expand Up @@ -35,7 +36,7 @@ public SmsProviderClient(string serviceUrl, TimeSpan timeout, int retriesCount)

private void InitializeClient()
{
var clientBuilder = HttpClientGenerator.HttpClientGenerator.BuildForUrl(_serviceUrl)
var clientBuilder = HttpClientGenerator.BuildForUrl(_serviceUrl)
.WithAdditionalCallsWrapper(new ExceptionHandlerCallsWrapper())
.WithRetriesStrategy(new LinearRetryStrategy(_timeout, _retriesCount));

Expand Down

0 comments on commit aecab1e

Please sign in to comment.