How to pass object from webrole.cs to the controller of MVC?

混江龙づ霸主 提交于 2019-12-12 01:57:48

问题


I am working on web role in the Azure cloud service. Basically my web role is an MVC application and how can I make the controller in MVC communicate with the webrole.cs class. For example, in the run() method in webrole.cs I have received a message and I want to pass it to the MVC controller, how can I do that? Any help is appreciated!


回答1:


You'd better use a azure service bus queue to do that. Send a message on Run, and take the message from queue in your mvc app.



来源:https://stackoverflow.com/questions/31478753/how-to-pass-object-from-webrole-cs-to-the-controller-of-mvc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!