protected override void service_NotificationSuccess(object sender, JdSoft.Apple.Apns.Notifications.Notification notification) { NotificationLogEntity insert = _dbContext.NotificationLogs.Create(); insert.DeviceToken = notification.DeviceToken; insert.InDate = DateTime.Now; insert.Message = notification.Payload.Alert.Body; insert.NotifyDate = DateTime.Now; insert.Status = 1; _dbContext.NotificationLogs.Add(insert); _dbContext.SaveChanges(); }
public FSNotificationPolicyBuilder(JdSoft.Apple.Apns.Notifications.NotificationService _apnService) { this._apnService = _apnService; }