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

Can't register hub. Use RegisterHub #160

Open
wd45T opened this issue Feb 20, 2024 · 0 comments
Open

Can't register hub. Use RegisterHub #160

wd45T opened this issue Feb 20, 2024 · 0 comments

Comments

@wd45T
Copy link

wd45T commented Feb 20, 2024

I'm using the example from the documentation, but an error occurs when registering the hub.

System.InvalidOperationException: 'No service for type 'Microsoft.AspNetCore.SignalR.HubLifetimeManager`1[HubsLib.TestHub]' has been registered.'

siloBuilder
    .UseSignalR()
    .RegisterHub<TestHub>();
    
public class TestHub : Hub
{
}

Using ability #1
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

1 participant