protected void OnMessageDirection(EntityHeadDirectionMessage ea) { if (MessageDirection != null) { MessageDirection(this, new ProtocolMessageEventArgs <EntityHeadDirectionMessage> { Message = ea }); } }
protected void OnMessageDirection(EntityHeadDirectionMessage ea) { var handler = MessageDirection; if (handler != null) { handler(this, new ProtocolMessageEventArgs <EntityHeadDirectionMessage> { Message = ea }); } }