-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving Photino.Blazor to Hosting #122
base: debug
Are you sure you want to change the base?
Conversation
wip: Add old pattern for .net 7 and 6
…10/Photino.Blazor into feature/move-to-hosting
is this work feasible? |
Yes. I've used it successfully in one of my projects without encountering errors (for now 😁) |
@Denny09310 We see what you're doing here and it looks like a nice addition. We're curious why you copied .NET source code into here instead of referencing the .NET code? "I managed to implement the IHostBuilder and IHostApplicationBuilder interfaces into the PhotinoBlazorAppBuilder" |
Unfortunately, most of the functionality is internal to |
@MikeYeager, after a thorough investigation, I've discovered that the solution was simpler than expected. I removed all the .NET source code files and implemented both the |
I managed to implement the IHostBuilder and IHostApplicationBuilder interfaces into the PhotinoBlazorAppBuilder. It's a bit of a hack job for now, though, mostly copy/pasting with a sprinkle of tweaks from the .NET source, just to get something going.
This can be useful for all the Hosting extensions and/or internal services that Microsoft.Extensions.Hosting offers and a way to register them gracefully inside the photino builder