/// <summary> /// /// </summary> /// <param name="Message"></param> protected void HandleGetClientMessage(GetClientMessage Message) { // set connection state connectionState = ConnectionState.Authenticated; // log Logger.Log(MODULENAME, LogType.Info, "ConnectionState: Authenticated"); }
/// <summary> /// Handler for "GetClient" message, your minor/major versions don't match server. /// </summary> /// <param name="Message"></param> protected override void HandleGetClientMessage(GetClientMessage Message) { // tell user about mismatching major/minor version MessageBox.Show(APPVERSIONMISMATCH); // close connection, we're not going to download the proposed meridian.exe ServerConnection.Disconnect(); // reset logincontrol MainForm.LoginControl.ConnectedState = false; }
/// <summary> /// /// </summary> /// <param name="Message"></param> protected override void HandleGetClientMessage(GetClientMessage Message) { // server proposed client update // adjust major/min version in configuration.xml // close connection and exit ServerConnection.Disconnect(); IsRunning = false; Log("ERROR", LOG_APPVERSIONERROR); Thread.Sleep(SLEEPAFTERERROR); }
/// <summary> /// /// </summary> /// <param name="Message"></param> protected override void HandleGetClientMessage(GetClientMessage Message) { ui.ShowAppVersionError(); }