Esempio n. 1
0
        public async Task NotifyPingbackAsync(string targetPostTitle, DateTime pingTimeUtc, string domain, string sourceIp, string sourceUrl, string sourceTitle)
        {
            var payload = new PingPayload(
                targetPostTitle,
                pingTimeUtc,
                domain,
                sourceIp,
                sourceUrl,
                sourceTitle);

            try
            {
                await SendAsync(new NotificationRequest <PingPayload>(MailMesageTypes.BeingPinged, payload));
            }
            catch (Exception e)
            {
                _logger.LogError(e, e.Message);
            }
        }