Need to resolve a dependency inCreateMauiApp()
method inMauiProgram.cs
?
If you google around you find you need to get an instance of IServiceProvider, this can be achived using the snippet bellow
varserviceProvider=builder.Services.BuildServiceProvider();varmyService=serviceProvider.GetService<MyService>()
MauiProgram.cs
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse