C# Класс Microsoft.Identity.Client.SilentWebUI

Наследование: WebUI, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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