ConnectedServiceSinglePage.CreateAuthenticatorAsync 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
사용자가 서비스에 로그인할 수 있도록 하는 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 클래스에 알릴 수 있습니다.