C# 클래스 Microsoft.Identity.Client.SilentWebUI

상속: WebUI, IDisposable
파일 보기 프로젝트 열기: AzureAD/microsoft-authentication-library-for-dotnet

공개 메소드들

메소드 설명
Dispose ( ) : void
SilentWebUI ( ) : System

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void
OnAuthenticate ( string headers ) : AuthorizationResult

Callers expect the call to show the authentication dialog to be synchronous. This is easy in the interactive case as ShowDialog is a synchronous call. However, ShowDialog will always show the dialog. It can not be hidden. So it can not be used in the silent case. Instead we need to do the equivalent of creating our own modal dialog. We start a new thread, launch an invisible window on that thread. The original calling thread blocks until the secondary UI thread completes.

비공개 메소드들

메소드 설명
Cleanup ( ) : void
StartUIThread ( string headers ) : Thread
ThrowIfTransferredException ( ) : void
UIDoneHandler ( object sender, SilentWebUIDoneEventArgs e ) : void
WaitForCompletionOrTimeout ( Thread uiThread ) : void

Waits on the UI Thread to complete normally for NavigationOverallTimeout. After it attempts shutdown the UI thread graceful followed by aborting the thread if a graceful shutdown is not successful.

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

OnAuthenticate() 보호된 메소드

Callers expect the call to show the authentication dialog to be synchronous. This is easy in the interactive case as ShowDialog is a synchronous call. However, ShowDialog will always show the dialog. It can not be hidden. So it can not be used in the silent case. Instead we need to do the equivalent of creating our own modal dialog. We start a new thread, launch an invisible window on that thread. The original calling thread blocks until the secondary UI thread completes.
protected OnAuthenticate ( string headers ) : AuthorizationResult
headers string
리턴 Microsoft.Identity.Client.Internal.AuthorizationResult

SilentWebUI() 공개 메소드

public SilentWebUI ( ) : System
리턴 System