public async Task Send(ApnsNotification notification) { var completableNotification = new ApnsConnection.CompletableApnsNotification(notification); connection.Send(completableNotification); var ex = await completableNotification.WaitForComplete().ConfigureAwait(false); if (ex != null) { throw ex; } }
public async Task Send(ApnsNotification notification) { var completableNotification = new ApnsConnection.CompletableApnsNotification(notification); connection.Send(completableNotification); var ex = await completableNotification.WaitForComplete().ConfigureAwait(false); //Log.Info ("Finished Waiting for Notification: {0} (Had Exception? {1})", notification.Identifier, ex != null); if (ex != null) { throw ex; } }