Assume I have a base class like this :
public class CustomizedHub<M> : Hub
{
...
}
and now I want to inherit all of practical hubs from this base class , but I get the following error :
Type CustomizedHub`1<M> is a generic type definition
The main reason for above error is SignalR tries to resolve the base class as a practical hub too. How can I enforce it to avoid this?
Just make your base class as an abstract class :
public abstract class CustomizedHub<M> : Hub
{
...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With