Beispiel #1
0
        public Task Handle(TodoUpdatedEvent eventMessage, CancellationToken cancellationToken)
        {
            //throw new NotImplementedException();

            // Send Update information Logic
            return(Task.CompletedTask);
        }
Beispiel #2
0
        public void UpdateTodo(Guid todoId, string text)
        {
            var @event = new TodoUpdatedEvent(Id, CurrentVersion, todoId, text);

            ApplyEvent(@event);
        }
        public void OnTodoUpdated(TodoUpdatedEvent @event)
        {
            var todo = Todos.Single(t => t.Id == @event.TodoId);

            todo.Text = @event.Text;
        }