本文整理汇总了C#中IAuthenticationService.BypassAuthentication方法的典型用法代码示例。如果您正苦于以下问题:C# IAuthenticationService.BypassAuthentication方法的具体用法?C# IAuthenticationService.BypassAuthentication怎么用?C# IAuthenticationService.BypassAuthentication使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IAuthenticationService
的用法示例。
在下文中一共展示了IAuthenticationService.BypassAuthentication方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: App
public App()
{
InitializeComponent();
app = this;
_AuthenticationService = DependencyService.Get<IAuthenticationService>();
/* if we were targeting Windows Phone, we'd want to include the next line. */
// if (Device.OS != TargetPlatform.WinPhone)
TextResources.Culture = DependencyService.Get<ILocalize>().GetCurrentCultureInfo();
#if TRY_APP_SERVICE
// Don't show splash screen for Try App Service version of client
_AuthenticationService.BypassAuthentication();
GoToRoot();
#else
// If the App.IsAuthenticated property is false, modally present the SplashPage.
if (!_AuthenticationService.IsAuthenticated)
{
MainPage = new SplashPage();
}
else
{
GoToRoot();
}
#endif
}