public void Emit(Event e) { if (e.TypeId == EventType.Command) ((Command)e).SenderId = Id; this.dispatcher.Emit(e); }