private void InitializePolicyListItems(ILogInPage page) { ExternalLogins = App.ExternalLogins.Select(policy => new ExternalLoginPageModel(page) { Authority = policy.Authority, AuthenticationType = policy.AuthenticationType, Caption = policy.Caption, Scope = policy.Scope }).ToArray(); }
public ExternalLoginPageModel(ILogInPage page) { if (page == null) { throw new ArgumentNullException(nameof(page)); } _page = page; RunCommand = new Command(async() => { await _page.RunPolicyAsync(Authority, Scope, AuthenticationType); }); }
public LogInSteps(ILogInPage loginPage) { _loginPage = loginPage; }
public LogInPresenter(ILogInPage logInPage) { this.logInPage = logInPage; logInPage.LogIn += LogInPage_LogIn; }
public LogInPageModel(ILogInPage page) { InitializePolicyListItems(page); }