Share via


ConnectedServiceSinglePage.CreateAuthenticatorAsync Method

Definition

Creates the ConnectedServiceAuthenticator that allows users to log into the service.

public:
 virtual System::Threading::Tasks::Task<Microsoft::VisualStudio::ConnectedServices::ConnectedServiceAuthenticator ^> ^ CreateAuthenticatorAsync();
public virtual System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.ConnectedServiceAuthenticator> CreateAuthenticatorAsync();
abstract member CreateAuthenticatorAsync : unit -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.ConnectedServiceAuthenticator>
override this.CreateAuthenticatorAsync : unit -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.ConnectedServiceAuthenticator>
Public Overridable Function CreateAuthenticatorAsync () As Task(Of ConnectedServiceAuthenticator)

Returns

A Task that returns the ConnectedServiceAuthenticator instance, or null if the provider doesn't need to use authentication.

Remarks

The Connected Services core will call Dispose() on this instance when the dialog is closed.

The Connected Services core only uses the View property on the ConnectedServiceAuthenticator when using the ConnectedServiceSinglePage option. However, the other members may be helpful in your single page implementation. For example, the AuthenticationChanged and IsAuthenticated members inform your ConnectedServiceSinglePage class when the user logs in and out, or switches to a different account.

Applies to