OrleansContrib / SignalR.Orleans

SignalR backend based on Orleans.
MIT License
295 stars 64 forks source link

Can't register hub. Use RegisterHub #160

Open wd45T opened 9 months ago

wd45T commented 9 months ago

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