Let's connect 🙂
🎯
ASP.NET Core & Blazor | SQL | Azure
-
SunPro Systems Limited
- NAIROBI,KENYA
-
10:52
(UTC +03:00)
Pinned Loading
-
Using Keyed Services in ASP.NET Core...
Using Keyed Services in ASP.NET Core to manage multiple implementations of an interface starting in .NET 8. 1// option 1: From Keyed Services attribute
2public partial class Payment : ComponentBase
3{
4[Inject, FromKeyedServices("PayPal")]
5public IPaymentService PaymentService { get; set; } = default!;
-
Access ClaimsPrincipal in a Blazor C...
Access ClaimsPrincipal in a Blazor Component 1@page "/user-info"
2@inject AuthenticationStateProvider AuthenticationStateProvider
34<h3>User Information</h3>
5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.