DEV Community

Discussion on: Advanced Blazor State Management Using Fluxor, part 3 - Effects

Collapse
 
mr_eking profile image
Eric King

The constructor for the effect class is called by the Fluxor library itself. The arguments are fulfilled by the standard Dependency Injection mechanism, by adding services in the Client/Program.cs class. Look in there and you'll see the HttpClient added explicitly, while the rest of the services are provided by the AddFluxor and AddBlazoredLocalStorage methods.

Collapse
 
momboman profile image
MomboMan

Urgh. Too subtle for this old guy to catch.

Thanks