protected void OnMessageEntityHealthState(EntityHealthStateMessage ea) { if (MessageEntityHealthState != null) { MessageEntityHealthState(this, new ProtocolMessageEventArgs <EntityHealthStateMessage>() { Message = ea }); } }
protected virtual void OnMessageEntityHealthState(EntityHealthStateMessage e) { var handler = MessageEntityHealthState; if (handler != null) { handler(this, new ProtocolMessageEventArgs <EntityHealthStateMessage> { Message = e }); } }