public void When(PersonContactInformationUpdated e) { this.logger.LogInformation("Updating contact information for {0} - {1}", e.PersonId, e.Lastname); var p = Person(e.PersonId); p.Email = e.ContactInformation.Email; p.Name = e.Lastname + " " + e.Firstname; p.Phone = e.ContactInformation.Phone; }
public void HandleUpdate(PersonContactInformationUpdated e) { var person = this.FirstOrDefault( m => m.PersonId.Equals(e.PersonId, StringComparison.OrdinalIgnoreCase)); if (person != null) { person.UpdateContactInformation(e); } }
public void UpdateContactInformation(PersonContactInformationUpdated e) { NfcId = e.NfcId; Lastname = e.Lastname; Firstname = e.Firstname; DisplayName = e.DisplayName; Phone = e.ContactInformation.Phone; Email = e.ContactInformation.Email; Twitter = e.ContactInformation.Twitter; Info = e.Info; }
public void UpdateContactInformation( string personId, string nfcId, string lastname, string firstname, string displayName, ContactInformation contactInformation, string info, DateTimeOffset timestamp) { var e = new PersonContactInformationUpdated( personId, nfcId, lastname, firstname, displayName, contactInformation, info) { Timestamp = timestamp }; this.Apply(e); }
public void When(PersonContactInformationUpdated e) => UpdateContactInformation(e);
public void When(PersonContactInformationUpdated e) => PublishToContributorClients(e);
public void When(PersonContactInformationUpdated e) { QueryModelRepository.Dashboard.People.HandleUpdate(e); }