Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Jul 8, 2024
1 parent 6e5d8f0 commit dd2be0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static IServiceCollection AddClientCoreProjectServices(this IServiceColle
services.TryAddTransient<AuthDelegatingHandler>();
services.TryAddTransient<RetryDelegatingHandler>();
services.TryAddTransient<ExceptionDelegatingHandler>();
services.TryAddSessioned<HttpMessageHandler, HttpClientHandler>();
services.TryAddSessioned<HttpClientHandler>();

services.AddSessioned<AuthenticationStateProvider, AuthenticationManager>(); // Use 'Add' instead of 'TryAdd' to override the aspnetcore's default AuthenticationStateProvider.
services.TryAddSessioned(sp => (AuthenticationManager)sp.GetRequiredService<AuthenticationStateProvider>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace Boilerplate.Client.Core.Services.HttpMessageHandlers;

public class ExceptionDelegatingHandler(IStringLocalizer<AppStrings> localizer, JsonSerializerOptions jsonSerializerOptions, HttpMessageHandler httpMessageHandler)
: DelegatingHandler(httpMessageHandler)
public class ExceptionDelegatingHandler(IStringLocalizer<AppStrings> localizer, JsonSerializerOptions jsonSerializerOptions, HttpClientHandler httpClientHandler)
: DelegatingHandler(httpClientHandler)
{
protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
{
Expand Down

0 comments on commit dd2be0c

Please sign in to comment.