private void OnUnregistrationCompleted(HttpCompletionArgs args) { if (args.Succeeded) { Log("Successfully unregistered for Push."); } else { Log("Failed to unregister for Push."); Log(args.ErrorMessage); } }
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); } }