Skip to content

Can't register hub. Use RegisterHub #160

@wd45T

Description

@wd45T

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions