Last active
August 29, 2015 14:09
-
-
Save peleyal/c81836f1d5e1ae8a8f4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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