Reputation: 1673
I have hub class with some methods, which are called by client without problems. But what to do, if I want to call method of class in hub's property, for example:
Class MyHub
Inherits Hub
Sub HubMethod()
End Sub
Property SC As New SimpleClass
End Class
Class SimpleClass
Sub DoNothing()
End Sub
End Class
I want to do something like myHubInstance.Invoke("SC.DoNothing")
. Is it even possible?
Upvotes: 1
Views: 126
Reputation: 31610
You can't do that. SignalR server discovers hubs using Reflection by checking if a type is derived from IHub
.
Upvotes: 2