asp.net mvc - call controller action from signalR -
is there way call mvc controller action signalr hub? noticed when doing controller context null. there way it? or maybe solution. thanks
according understanding of signalr. should have must implemented "hub" abstract class. in controller should have must implemented "controller" abstract class. suppose have call action of our controller signalr hub controller must implemented hub abstract class. more 1 abstract class cannot implement in 1 class. hence not possible call action of controller signalr hub.
but can try follow: create 1 class have implemented "hub" abstract class create instance of controller using mock in class , call action implemented "hub" class.
please correct me if wrong.
Comments
Post a Comment