private string Describe(NewContactMessage @event) { Require.NotNull(@event, nameof(@event)); return string.Format(EventDescriptionResources.NewContactMessage, @event.ClientName, @event.MessageTopic, @event.MessageBody, @event.ClientEmalAddress); }
public void SendContactMessage(NewContactMessage contactMessage) { Require.NotNull(contactMessage, nameof(contactMessage)); _contactsEventSink.ConsumeEvent(contactMessage); }