I watch myself sign up. This obsevable will return an object that has an ActivationType property that can be set multiple times.
What I'm trying to achieve is to log a message whenever the ActivationType parameter is set to "Type1". However, if ActivationType is set to Type2, register the message only once and wait 30 seconds before logging in again if ActivationType is Type2.
So, if I have:
myObservable .Where(o => o.ActivationType == "Type1" || o.ActivationType == "Type2")
I believe that Throttle () is what I'm looking for, but not sure how to call it conditionally.
Any suggestions?
source share