internal void Update(StudentUpdatedEvent @event) { FirstName = @event.FirstName; LastName = @event.LastName; StudentType = @event.StudentType; StudentTypeId = @event.StudentTypeId; }
public void Update(StudentUpdatedEvent @event) { ProcessEvent(@event, e => { Id = e.StudentId; FirstName = e.FirstName; LastName = e.LastName; StudentType = e.StudentType; StudentTypeId = e.StudentTypeId; }); }
public Task Handle(StudentUpdatedEvent notification, CancellationToken cancellationToken) { // 恭喜您,更新成功,请牢记修改后的信息。 return(Task.CompletedTask); }
public Task Handle(StudentUpdatedEvent notification, CancellationToken cancellationToken) { throw new System.NotImplementedException(); }
public Task Handle(StudentUpdatedEvent message, CancellationToken cancellationToken) { // Send some notification e-mail return(Task.CompletedTask); }