Open ggutschi opened 2 years ago
Hi!
The call of BuildServiceProvider in UseFreshMvvm is bad practice (see Microsoft Docs). For example: Nested constructor injections with singletons won't work.
Best regards
As a workaround I'm using
var app = builder.Build(); DependancyService.RegisterServiceProvider(app.Services.GetService<IServiceProvider>()); return app;
instead of
services.UseFreshMvvm();
Hi!
The call of BuildServiceProvider in UseFreshMvvm is bad practice (see Microsoft Docs). For example: Nested constructor injections with singletons won't work.
Best regards