示例#1
0
 public void Handle(DepartmentUpdatedEvent @event)
 {
     AddedDate   = @event.AddedDate;
     Description = @event.Description;
     ImageUrl    = @event.ImageUrl;
     Importance  = @event.Importance;
     Title       = @event.Title;
 }
示例#2
0
        public void Update(
            Guid Id,
            DateTime AddedDate,
            string Title,
            int Importance,
            string Description,
            string ImageUrl)
        {
            var @event = new DepartmentUpdatedEvent
            {
                AggregateId = Id,
                AddedDate   = AddedDate,
                Description = Description,
                ImageUrl    = ImageUrl,
                Importance  = Importance,
                Title       = Title
            };

            ApplyChange(@event);
        }
 public void Handle(DepartmentUpdatedEvent message)
 {
     // Send some notification e-mail
 }