/// <summary> /// Processes the message received from the server /// </summary> /// <param name="message">The message.</param> private void ProcessServerMessage(ClientTrackerMessage message) { if (message != null) { this.OnMessageReceived(message); } }
/// <summary> /// Initializes a new instance of the <see cref="MessageRecievedEventArgs"/> class. /// </summary> /// <param name="message">The message.</param> public MessageRecievedEventArgs(ClientTrackerMessage message) { this.Message = message; }
/// <summary> /// Called when [message received]. /// </summary> /// <param name="message">The message.</param> protected virtual void OnMessageReceived(ClientTrackerMessage message) { MessageReceived?.Invoke(this, new MessageRecievedEventArgs(message)); }
/// <summary> /// Processes the message received from the server /// </summary> /// <param name="message">The message.</param> private void ProcessServerMessage(ClientTrackerMessage message) { if (message != null) this.OnMessageReceived(message); }