如何使用流量和事件发射器与.NET MVC? [英] How to use Flux and event emitter with .net MVC?

查看:168
本文介绍了如何使用流量和事件发射器与.NET MVC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想学习流量模式。

我学会了使用使用.NET MVC反应,呈现它的服务器端。

I learned to use React with .net MVC and rendered it server side.

我想学习助焊剂,但所有的教程使用节点JS。

I would like to learn Flux but all tutorials use node js.

我不使用节点。

我不知道如何实现事件发射器部分,因为它使用了一个节点的功能。

I don't know how to implement the Event Emitter part because it uses a node function.

<一个href=\"https://www.$c$cmentor.io/reactjs/tutorial/react-js-flux-architecture-tutorial\">https://www.$c$cmentor.io/reactjs/tutorial/react-js-flux-architecture-tutorial

关于一路下跌1/3:

事件发射器 - 该事件发射器负责通知订户商店完成后的任何数据操作相反的,它也需要能够为特定事件注册观察家我们将要使用节点的事件发射器。待办事项应用程序。

"Event Emitter – The event emitter is responsible for notifying subscribers after a store has completed any data action. Conversely, it also needs to be able to register observers for specific events. We’re going to be using Node’s event emitter in the todo application."

由于Flux是一个简单的模式,是有什么我可以使用.NET MVC使用,在没有节点,以处理事件发射器的一部分?

Given that Flux is simply a pattern, is there something that I can use with .net MVC, in the absence of node, to handle the Event Emitter part?

思想AP preciated,谢谢。

Thoughts appreciated, thanks.

推荐答案

我们确实使用在客户端的流量模式,而无需安装了我们的Web服务器上的node.js。为了做到这一点,我们在构建时使用的Node.js我们的团队市CI服务器上运行通过JSX间preters推.jsx文件一饮而尽任务,并吐出一个原始的js文件。现在我们的流量应用是已经被Node.js的PTED间$ P $一个本质上是一种静态的.js文件

We do use the flux pattern on the client side without having node.js installed on our web servers. In order to do this we have to use Node.js at build time on our Team City CI servers to run a gulp task that pushes the .jsx files through the jsx interpreters and spit out a raw js file. Now our flux application is a essentially a static .js file that has already been interpreted by Node.js

这篇关于如何使用流量和事件发射器与.NET MVC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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