You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Extensions/IClientCoreServiceCollectionExtensions.cs
+9-1
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,15 @@ public static IServiceCollection AddClientCoreProjectServices(this IServiceColle
services.AddScoped<AbsoluteServerAddressProvider>(sp =>new(){GetAddress=()=>sp.GetRequiredService<HttpClient>().BaseAddress!/* Read AbsoluteServerAddressProvider's comments for more info. */});
services.AddScoped<AbsoluteServerAddressProvider>(sp =>new(){GetAddress=()=>sp.GetRequiredService<HttpClient>().BaseAddress!/* Read AbsoluteServerAddressProvider's comments for more info. */});
43
+
}
36
44
37
45
// The following services must be unique to each app session.
38
46
// Defining them as singletons would result in them being shared across all users in Blazor Server and during pre-rendering.
Copy file name to clipboardexpand all lines: src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/HttpMessageHandlers/AuthDelegatingHandler.cs
Copy file name to clipboardexpand all lines: src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/HttpMessageHandlers/ExceptionDelegatingHandler.cs
Copy file name to clipboardexpand all lines: src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/HttpMessageHandlers/RetryDelegatingHandler.cs
catch(Exceptionexp)when(expis not KnownException||expisServerConnectionException)// If the exception is either unknown or a server connection issue, let's retry once more.
0 commit comments