/// <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); }
/// <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; }