public override Task <ConnectedServiceAuthenticator> CreateAuthenticatorAsync() { // Adds content to the Authenticator "black box" in the top right corner ConnectedServiceAuthenticator authenticator = new AuthenticatorViewModel(); authenticator.AuthenticationChanged += (sender, e) => { // If not set to true, the grid has default behavior to prompt for authentication this.CanCreateServiceInstance = authenticator.IsAuthenticated; }; return(Task.FromResult(authenticator)); }
public override Task<ConnectedServiceAuthenticator> CreateAuthenticatorAsync() { // Adds content to the Authenticator "black box" in the top right corner ConnectedServiceAuthenticator authenticator = new AuthenticatorViewModel(); authenticator.AuthenticationChanged += (sender, e) => { // If not set to true, the grid has default behavior to prompt for authentication this.CanCreateServiceInstance = authenticator.IsAuthenticated; }; return Task.FromResult(authenticator); }