コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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;
            }
        }