Exemplo n.º 1
0
            protected override void SessionLost(uint sessionId, SessionLostReason reason)
            {
                _sessionTest.sessionLostReasonFlag = true;
                _sessionTest.reasonMarker          = reason;
                EventWaitHandle ewh = new EventWaitHandle(true, EventResetMode.AutoReset, "SessionLostReason");

                ewh.Set();
            }
Exemplo n.º 2
0
            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();
            }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 /**
  * 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)
 {
 }
Exemplo n.º 5
0
			protected override void SessionLost(uint sessionId, SessionLostReason reason)
			{
				_sessionTest.sessionLostReasonFlag = true;
				_sessionTest.reasonMarker = reason;
				EventWaitHandle ewh = new EventWaitHandle(true, EventResetMode.AutoReset, "SessionLostReason");
				ewh.Set();
			}
Exemplo n.º 6
0
 /**
  * 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)
 {
 }