internal override void ProcessSystemMessage(SystemMessage message) { // Received a system message. #if Matrix_Diagnostics InstanceMonitor monitor = Monitor; if (monitor != null && monitor.IsReportAllowed) { monitor.Info(string.Format("Processing system message [{0}].", message.ToString())); } #endif if (message.Type == SystemMessage.TypeEnum.KeepAlive && this.KeepAlive == false) {// Make sure to activate keep alive on this side too. #if Matrix_Diagnostics monitor.Warning("Received KeepAlive, and KeepAlive not active on this client, auto-activating."); #endif this.KeepAlive = true; } _lastMessageReceivedTime = DateTime.Now; }
/// <summary> /// Allows to process system messages in a different way, should there be one. /// </summary> /// <param name="message"></param> internal virtual void ProcessSystemMessage(SystemMessage message) { }