/// <summary> /// Beim Wechsel des Profils wird die Verbindung zum VCR.NET gelöst. /// </summary> public override void OnProfileChanging() { // Forget the status m_LastStatus = null; // Stop LIVE mode VCRNETRestProxy.DisconnectSync( m_serverRoot, Profile ); }
/// <summary> /// Prüft, ob der zugehörige VCR.NET noch im LIVE Modus Daten an die /// aktuelle Anwendung sendet. Ist das nicht der Fall, wird mit in /// zur Anzeige der aktuellen Aufzeichnung gewechselt. /// </summary> public override void KeepAlive() { // Read the status var status = m_LastStatus; // Clear it m_LastStatus = null; // Not connected to us if (status != null) if (!StringComparer.InvariantCultureIgnoreCase.Equals( status.target, Adaptor.Target )) { // Switch mode Adaptor.StartWatch( null ); // Done return; } // Restart request VCRNETRestProxy.GetStatus( m_serverRoot, Profile, newState => m_LastStatus = newState, null ); }