asp.net mvc - How to use Flux and event emitter with .net MVC? -


i trying learn flux pattern.

i learned use react .net mvc , rendered server side.

i learn flux tutorials use node js.

i don't use node.

i don't know how implement event emitter part because uses node function.

https://www.codementor.io/reactjs/tutorial/react-js-flux-architecture-tutorial

about 1/3 of way down:

"event emitter – event emitter responsible notifying subscribers after store has completed data action. conversely, needs able register observers specific events. we’re going using node’s event emitter in todo application."

given flux pattern, there can use .net mvc, in absence of node, handle event emitter part?

thoughts appreciated, thanks.

you can use .net delegates, documented here https://msdn.microsoft.com/en-us/library/edzehd2t%28v=vs.110%29.aspx

delegates multicast, means can hold references more 1 event-handling method.

this of course server-side implementation of flux pattern.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

apache - setting document root in antoher partition on ubuntu -