-4

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.

Pooria Sadeghy
  • 373
  • 1
  • 5
  • 17

1 Answers1

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