コード例 #1
0
 internal void Update(StudentUpdatedEvent @event)
 {
     FirstName     = @event.FirstName;
     LastName      = @event.LastName;
     StudentType   = @event.StudentType;
     StudentTypeId = @event.StudentTypeId;
 }
コード例 #2
0
 public void Update(StudentUpdatedEvent @event)
 {
     ProcessEvent(@event, e =>
     {
         Id            = e.StudentId;
         FirstName     = e.FirstName;
         LastName      = e.LastName;
         StudentType   = e.StudentType;
         StudentTypeId = e.StudentTypeId;
     });
 }
コード例 #3
0
        public Task Handle(StudentUpdatedEvent notification, CancellationToken cancellationToken)
        {
            // 恭喜您,更新成功,请牢记修改后的信息。

            return(Task.CompletedTask);
        }
コード例 #4
0
 public Task Handle(StudentUpdatedEvent notification, CancellationToken cancellationToken)
 {
     throw new System.NotImplementedException();
 }
コード例 #5
0
ファイル: StudentEventHandler.cs プロジェクト: liwl/DDD-Demo
        public Task Handle(StudentUpdatedEvent message, CancellationToken cancellationToken)
        {
            // Send some notification e-mail

            return(Task.CompletedTask);
        }