示例#1
0
        public void Apply(IEvent @event)
        {
            if ([email protected](GetType()))
            {
                throw new Exception($"cant apply to {this.GetType()}");
            }

            @event.Apply((dynamic)this);

            OnEventApplied(@event);
        }