I wonder what is the best way to get the latest element in a sequence before the Timeout fires?
I have a code that ping the remote services from time to time and I want to be able to identify one that has gone offline.
Using the Timeout extension I came up to this:
heartbeatResponseObservable.Timeout(Timeout, Observable.Return(new HeartbeatBusMessage.Timeout()))
This kinda work but it doesn't allow me to find which service has gone. What I'd like to have is the Timeout extension with the latest message in the stream as an argument to provide some information in the error message it produce.
How do I get the latest sequence element inside the Timeout extension?