Skip to content

Commit

Permalink
fix: MauiEmbedding extensions should use specified TApp type (#16758)
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel authored and rmarinho committed Aug 19, 2023
1 parent 1a7e980 commit 19f66c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public static class AppHostBuilderExtensions
{
public static MauiAppBuilder UseMauiEmbedding<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TApp>(this MauiAppBuilder builder)
where TApp : class, IApplication
=> builder.UseMauiApp<Controls.Application>();
=> builder.UseMauiApp<TApp>();

public static MauiAppBuilder UseMauiEmbedding<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TApp>(this MauiAppBuilder builder, Func<IServiceProvider, Controls.Application> implementationFactory)
public static MauiAppBuilder UseMauiEmbedding<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TApp>(this MauiAppBuilder builder, Func<IServiceProvider, TApp> implementationFactory)
where TApp : class, IApplication
=> builder.UseMauiApp(implementationFactory);
}
Expand Down

0 comments on commit 19f66c0

Please sign in to comment.