Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        public void HandleUpdate(PersonContactInformationUpdated e)
        {
            var person = this.FirstOrDefault(
                m => m.PersonId.Equals(e.PersonId, StringComparison.OrdinalIgnoreCase));

            if (person != null)
            {
                person.UpdateContactInformation(e);
            }
        }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
 public void When(PersonContactInformationUpdated e) => UpdateContactInformation(e);
Ejemplo n.º 6
0
 public void When(PersonContactInformationUpdated e) => PublishToContributorClients(e);
Ejemplo n.º 7
0
 public void When(PersonContactInformationUpdated e)
 {
     QueryModelRepository.Dashboard.People.HandleUpdate(e);
 }