/// <summary> /// OnMessageReceived is called internally when a new broadcast /// message comes in. /// </summary> /// <param name="sender">Origin sender</param> /// <param name="e">EventArgs containing the broadcast message</param> private void OnMessageReceived(object sender, MessageReceivedEventArgs <BroadcastBaseMessage> e) { if (e.Message is GamestreamEnabledMessage enabledMessage) { _enabledMessage = enabledMessage; } LogTool.LogTrace("Received BroadcastMsg:\r\n{0}\r\n{1}", e.Message.ToString(), JsonConvert.SerializeObject(e.Message, Formatting.Indented)); }