public Event(IEventInfo eventInfo, int id = 0) { Id = id; OccurredOn = DateTimeOffset.Now; EventInfo = JsonConvert.SerializeObject(eventInfo); EventType = eventInfo.GetEventType(); }
public Event(IEventInfo eventInfo) { Require.NotNull(eventInfo, nameof(eventInfo)); OccuredOn = DateTime.UtcNow; EventType = eventInfo.GetEventType(); EventInfo = SerializeEventInfo(eventInfo); }
public Event(IEventInfo eventInfo) { Require.NotNull(eventInfo, nameof(eventInfo)); OccuredOn = DateTime.UtcNow; EventType = eventInfo.GetEventType(); EventInfo = SerializeEventInfo(eventInfo); }
protected void SendOutEmailsAboutEvent(int[] userIds, IEventInfo eventInfo) { var ids = userIds.Where( id => _userPresentationProvider.GetUserEventSettings(id, eventInfo.GetEventType()) == NotificationSettingValue.SendNotificationAndMail).ToArray(); Mailer.SendNotificationEmail(ids, eventInfo); }
protected void SendOutEmailsAboutEvent(int[] userIds, IEventInfo eventInfo) { var ids = userIds.Where( id => _userPresentationProvider.GetUserEventSettings(id, eventInfo.GetEventType()) == NotificationSettingValue.SendNotificationAndMail).ToArray(); Mailer.SendNotificationEmail(ids, eventInfo); }