Today Grace has extension methods directly on IHostBuilder and IWebHostBuilder to enable the Grace DI container to be used in those app models. However this doesn't work for Blazor WASM and MAUI apps because they don't implement the IHostBuilder interface.
Today Grace has extension methods directly on
IHostBuilder
andIWebHostBuilder
to enable the Grace DI container to be used in those app models. However this doesn't work for Blazor WASM and MAUI apps because they don't implement theIHostBuilder
interface.See the discussion https://github.com/dotnet/maui/pull/4505#discussion_r799685120.
We should consider exposing Grace's
IServiceProviderFactory
class so users can use Grace with these application models.https://github.com/ipjohnson/Grace.DependencyInjection.Extensions/blob/425c2748f048c5eea1676df65040782b78f30dc2/src/Grace.AspNetCore.Hosting/GraceServiceProviderExtensions.cs#L42