public Guid Notify(DataContracts.Notification notification, bool bypassQueuing = false) { try { _logger.Info("Received notification."); _notificationValidator.ValidateAndThrow(notification); var ndo = _notificationMapper.MapToDomainObject(notification); var identifier = _commsDeliveryManager.Notify(ndo, bypassQueuing); return identifier; } catch (Exception ex) { _logger.Error(ex, ex.Message); throw; } }
public DomainObjects.Notification MapToDomainObject(DataContracts.Notification source) { return Mapper.Map<DataContracts.Notification, DomainObjects.Notification>(source); }