Skip to content
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

UseTwitchLibEventSubWebhooks support for .NET 7+ IHostApplicationBuilder #6

Open
darrenfoley opened this issue Mar 13, 2024 · 2 comments

Comments

@darrenfoley
Copy link

The UseTwitchLibEventSubWebhooks extension method is currently defined on IApplicationBuilder, which is being phased out in favor of IHostApplicationBuilder.

HostApplicationBuilder is returned by Host.CreateApplicationBuilder() and implements IHostApplicationBuilder.
WebApplicationBuilder is returned by WebApplication.CreateBuilder() and also implements IHostApplicationBuilder.

Can we get support for this new interface?

@Syzuna
Copy link
Member

Syzuna commented Mar 13, 2024

Hmm yeah I can look into that.
Currently busy with client work that's why it's been slow around here but I can try to sneak it in

@darrenfoley
Copy link
Author

I was actually wrong about part of this. WebApplication.CreateBuilder().Build() returns a WebApplication, which does indeed implement IApplicationBuilder.

Host.CreateApplicationBuilder().Build() returns an IHost though, so that doesn't work. That said, I'm not sure if you want it to work or just want to require people to use a WebApplication. Feel free to close if you see fit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants