Пример #1
0
        public LoginViewModel(AmazonCognitoIdentityProviderConfig idpConfig, IConfigureCognito cognitoConfig)
        {
            _idpConfig     = idpConfig;
            _cognitoConfig = cognitoConfig;

            Message       = "Please enter your credentials";
            Password      = "";
            SignInCommand = new Command(OnSignIn);
        }
Пример #2
0
        public App(AmazonCognitoIdentityProviderConfig idpConfig, IConfigureCognito cognitoConfig)
        {
            InitializeComponent();
            var viewModel = new LoginViewModel(idpConfig, cognitoConfig);

            MainPage = new MainPage {
                BindingContext = viewModel
            };
        }