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

前端 未结 2 1705
[愿得一人]
[愿得一人] 2021-01-02 20:14

I am trying to learn the Flux pattern.

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

I would like to learn Flux but all tutorials use n

2条回答
  •  鱼传尺愫
    2021-01-02 20:37

    You can use .NET Delegates, which is well documented here https://msdn.microsoft.com/en-us/library/edzehd2t%28v=vs.110%29.aspx

    Delegates are multicast, which means that they can hold references to more than one event-handling method.

    This will of course be a server-side implementation of the Flux pattern.

提交回复
热议问题