You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation of Connection.HeartBeat uses System.Threading.Timer. Unfortunately Xamarin (Mono) on Android uses a Scheduler to implement the Timer.
When an app gets into suspend state the Timer does not trigger (by design), so the connection is disconnected by the broker (RabbitMQ / Azure Service Bus).
We solved this issue by simply changing the Connection.HeartBeat to use a Thread with AutoResetEvent.WaitOne. So there is no dependency to different Timer implementations.
The text was updated successfully, but these errors were encountered:
The implementation of
Connection.HeartBeat
usesSystem.Threading.Timer
. Unfortunately Xamarin (Mono) on Android uses a Scheduler to implement theTimer
.When an app gets into suspend state the
Timer
does not trigger (by design), so the connection is disconnected by the broker (RabbitMQ / Azure Service Bus).We solved this issue by simply changing the
Connection.HeartBeat
to use aThread
withAutoResetEvent.WaitOne
. So there is no dependency to differentTimer
implementations.The text was updated successfully, but these errors were encountered: