Skip to content

Instantly share code, notes, and snippets.

@peleyal
Last active August 29, 2015 14:09
Show Gist options
  • Save peleyal/c81836f1d5e1ae8a8f4d to your computer and use it in GitHub Desktop.
Save peleyal/c81836f1d5e1ae8a8f4d to your computer and use it in GitHub Desktop.
/// <summary>
/// ContinuationManager is used to detect if the most recent activation was due to a
/// authentication continuation.
///
/// Note: To keep this sample as simple as possible, the content of the file was changed
/// to support WebAuthenticationBrokerContinuation ONLY. Take a look in
/// http://msdn.microsoft.com/en-us/library/dn631755.aspx for a full documentation on how
/// to support continuation in other cases.
/// </summary>
public class ContinuationManager
{
internal void Continue(IContinuationActivatedEventArgs args)
{
switch (args.Kind)
{
case ActivationKind.WebAuthenticationBrokerContinuation:
var page = MainPage.Current as IWebAuthenticationContinuable;
if (page != null)
{
page.ContinueWebAuthentication(
args as WebAuthenticationBrokerContinuationEventArgs);
}
break;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment