protected override void SessionLost(uint sessionId, SessionLostReason reason) { _sessionTest.sessionLostReasonFlag = true; _sessionTest.reasonMarker = reason; EventWaitHandle ewh = new EventWaitHandle(true, EventResetMode.AutoReset, "SessionLostReason"); ewh.Set(); }
private void _SessionLost(IntPtr context, uint sessionId, SessionLostReason reason) { uint _sessionId = sessionId; SessionLostReason _reason = reason; System.Threading.Thread callIt = new System.Threading.Thread((object o) => { /* SessionLost must be called here for the obsolite callback function to * continue to work */ #pragma warning disable 618 SessionLost(_sessionId); #pragma warning restore 618 SessionLost(_sessionId, _reason); }); callIt.Start(); }
/** * Called by the bus when an existing session becomes disconnected. * * @param sessionId Id of session that was lost. * @param reason The reason for the session being lost */ protected virtual void SessionLost(uint sessionId, SessionLostReason reason) { }