Skip to content

Commit f4d1610

Browse files
authored
Update AvatarUtility.cs
#!components: grid-bot Signed-off-by: Nikita Petko <petko@vmminfra.net>
1 parent ce3be30 commit f4d1610

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

services/grid-bot/lib/utility/Implementation/AvatarUtility.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,15 @@ public class AvatarUtility : IAvatarUtility
131131
/// <param name="jobManager">The <see cref="IJobManager"/>.</param>
132132
/// <param name="thumbnailsClient">The <see cref="IThumbnailsClient"/>.</param>
133133
/// <param name="percentageInvoker">The <see cref="IPercentageInvoker"/>.</param>
134+
/// <param name="httpClientFactory">The <see cref="IHttpClientFactory"/>.</param>
134135
public AvatarUtility(
135136
ILogger logger,
136137
AvatarSettings avatarSettings,
137138
IRandom random,
138139
IJobManager jobManager,
139140
IThumbnailsClient thumbnailsClient,
140-
IPercentageInvoker percentageInvoker
141+
IPercentageInvoker percentageInvoker,
142+
IHttpClientFactory httpClientFactory
141143
)
142144
{
143145
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
@@ -146,6 +148,7 @@ IPercentageInvoker percentageInvoker
146148
_jobManager = jobManager ?? throw new ArgumentNullException(nameof(jobManager));
147149
_thumbnailsClient = thumbnailsClient ?? throw new ArgumentNullException(nameof(thumbnailsClient));
148150
_percentageInvoker = percentageInvoker ?? throw new ArgumentNullException(nameof(percentageInvoker));
151+
_httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory));
149152

150153
_localCachedPaths = new(avatarSettings.LocalCacheTtl);
151154
_localCachedPaths.EntryRemoved += OnLocalCacheEntryRemoved;

0 commit comments

Comments
 (0)