Factory Methods That Allow For Intermediate Code To Execute And/Or Conditionally Fire An Observable When Bridging Between .NET Events and Observables #3317
-
Love the project! I see that Reactive Extensions + ReactiveUI give some factory methods to help with observable creation including bridging standard .NET events and observables. However, we sometimes need to do intermediate logic whenever an event fires and/or fire another event depending on some conditional statement. Here's some example pseudocode of what our team would like to do: event = standard .NET event
Is there a simple way to do this with existing factory methods? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I would checkout https://github.com/reactivemarbles/ObservableEvents for generating those observable events. In terms of conditional, you can combine them together with |
Beta Was this translation helpful? Give feedback.
I would checkout https://github.com/reactivemarbles/ObservableEvents for generating those observable events.
In terms of conditional, you can combine them together with
.CombineLatest(
orMerge(
and then do a.Where(
for your conditional logic.