-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature_LWDEV-7673_prevent-memory-leak' into dev
# Conflicts: # client/Lykke.Service.Assets.Client/ServiceCollectionExtensions.cs
- Loading branch information
Showing
3 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
client/Lykke.Service.Assets.Client/AssetsService.Extend.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net.Http; | ||
using System.Text; | ||
|
||
// ReSharper disable once CheckNamespace | ||
namespace Lykke.Service.Assets.Client | ||
{ | ||
public partial class AssetsService | ||
{ | ||
/// <inheritdoc /> | ||
/// <summary> | ||
/// Should be used to prevent memory leak in RetryPolicy | ||
/// </summary> | ||
public AssetsService(Uri baseUri, HttpClient client) : base(client) | ||
{ | ||
Initialize(); | ||
|
||
BaseUri = baseUri ?? throw new ArgumentNullException("baseUri"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters