How to pass object from webrole.cs to the controll

2019-08-22 16:30发布

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条回答
Melony?
2楼-- · 2019-08-22 17:09

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.

查看更多
登录 后发表回答