Is it possible that call event by name in net core 2 ( without specifying a particular class or function ) and everywhere waiting for this event, codes run. Like subject in typescript.
Asked
Active
Viewed 187 times
-4
-
if its not possible, you can say that ! – Pooria Sadeghy Mar 17 '19 at 16:39
-
1Typescript doesn't have subjects. Are you confusing typescript with the JavaScript library RxJS? – Tseng Mar 17 '19 at 20:41
-
yes you right. i searching now for rx.net – Pooria Sadeghy Mar 18 '19 at 18:22
1 Answers
1
The language does not allow to do so.
However, if you are looking for something that resembles subjects, you can use Rx.NET because subjects are not typescript objects, but are imported from rxjs.
Rx.NET, rxjs are equivalent implementation of the RX framework in their respective languages.

Yennefer
- 5,704
- 7
- 31
- 44
-
1RX/ReactiveExtensions was a microsoft research project and RX.NET is its first implementation. All others are ports ;) – Tseng Mar 17 '19 at 20:42
-
1I didn't know it was the other way around. I edit the answer. Thank you! – Yennefer Mar 18 '19 at 15:41