如何通过从webrole.cs对象MVC的控制器? [英] How to pass object from webrole.cs to the controller of MVC?

查看:201
本文介绍了如何通过从webrole.cs对象MVC的控制器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作中的Azure云服务Web角色。基本上我的Web角色是一个MVC应用程序,我怎么可以在MVC控制器与webrole.cs类通信。例如,在webrole.cs的run()方法我收到一个消息,我想将它传递给了MVC的控制器,我该怎么办呢?
任何帮助AP preciated!

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!

推荐答案

您最好使用蔚蓝服务总线队列做到这一点。发送运行信息,并采取从队列中的消息,在你的MVC应用程序。

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.

这篇关于如何通过从webrole.cs对象MVC的控制器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆