다음을 통해 공유


ConnectedServiceSinglePage.CreateAuthenticatorAsync 메서드

정의

사용자가 서비스에 로그인할 수 있도록 하는 ConnectedServiceAuthenticator를 만듭니다.

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)

반환

ConnectedServiceAuthenticator instance 반환하는 작업 또는 공급자가 인증을 사용할 필요가 없는 경우 null입니다.

설명

연결된 서비스 코어는 대화 상자가 닫힌 경우 이 instance Dispose()를 호출합니다.

ConnectedServiceSinglePage 옵션을 사용하는 경우 Connected Services 코어는 ConnectedServiceAuthenticator의 View 속성만 사용합니다. 그러나 다른 멤버는 단일 페이지 구현에 유용할 수 있습니다. 예를 들어 AuthenticationChanged 및 IsAuthenticated 멤버는 사용자가 로그인 및 로그아웃하거나 다른 계정으로 전환할 때 ConnectedServiceSinglePage 클래스에 알릴 수 있습니다.

적용 대상