コード例 #1
0
        /// <summary>
        /// Creates the ConnectedServiceAuthenticator object, which controls whether the user is signed in.
        /// </summary>
        public override Task<ConnectedServiceAuthenticator> CreateAuthenticatorAsync()
        {
            ConnectedServiceAuthenticator authenticator = new AuthenticatorViewModel();
            authenticator.AuthenticationChanged += (sender, e) =>
            {
                this.CanCreateServiceInstance = authenticator.IsAuthenticated;
            };

            return Task.FromResult(authenticator);
        }
コード例 #2
0
        /// <summary>
        /// Creates the ConnectedServiceAuthenticator object, which controls whether the user is signed in.
        /// </summary>
        public override Task <ConnectedServiceAuthenticator> CreateAuthenticatorAsync()
        {
            ConnectedServiceAuthenticator authenticator = new AuthenticatorViewModel();

            authenticator.AuthenticationChanged += (sender, e) =>
            {
                this.CanCreateServiceInstance = authenticator.IsAuthenticated;
            };

            return(Task.FromResult(authenticator));
        }
 public ChangeAuthenticationCommand(AuthenticatorViewModel authenticator)
 {
     this.authenticator = authenticator;
 }
コード例 #4
0
 public ChangeAuthenticationCommand(AuthenticatorViewModel authenticator)
 {
     this.authenticator = authenticator;
 }