/// <summary> /// Handles the stop event for the local host and the (Disconnect) from the remote host /// </summary> /// <param name="context">Indicates whether the event came from local or remote host</param> public void Stop(object context) { if (context == null) { // stop the local engine if (_localTpe != null) { _localTpe.Stop(); } // remove the session record if (_appSession != null) { _appSession.End(); } Status(context); } else { // Inform the remote host that we are no longer monitoring it. remoteTpeStatus.Clear(); _remoteTpe.Disconnect(_engineId); pagingTableRemoteHosts.IsEnabled = true; } }