public void Handle(UserQueryResult message) { Data.AllUsersCount = message.QueryResultCount; if (message.Dtos != null) { Data.UsersRetrievedCount += message.Dtos.Length; foreach (var userDto in message.Dtos) { AddUserLite(UserLite.Create(userDto)); } } CompleteSagaIfNecessary(); }
public void Handle(RequesterCreatedMessage message) { AddToRepository(UserLite.Create(message.Dto)); }
public void Handle(RequesterUpdatedMessage message) { UpdateInRepository(UserLite.Create(message.Dto)); }
public void Handle(UserCreatedMessage message) { var user = UserLite.Create(message.Dto); AddToRepository(user); }