Example #1
0
 private void OnUnregistrationCompleted(HttpCompletionArgs args)
 {
     if (args.Succeeded)
     {
         Log("Successfully unregistered for Push.");
     }
     else
     {
         Log("Failed to unregister for Push.");
         Log(args.ErrorMessage);
     }
 }
Example #2
0
        private void OnRegistrationCompleted(HttpCompletionArgs args)
        {
            if (args.Succeeded)
            {
                Log("Successfully registered for Push.");

                //e.g. HttpNotificationChannel can be accessed from the args for additional use
                _channel = args.RawNotificationChannel;
                _channel.BindToShellToast();
                _channel.ShellToastNotificationReceived += ChannelOnShellToastNotificationReceived;
            }
            else
            {
                Log("Failed to register for Push.");
                Log(args.ErrorMessage);
            }
        }