語言

SecurityTokenProvider.BeginRenewTokenCore 方法

定義

開始非同步操作,更新安全令牌。

protected:
 virtual IAsyncResult ^ BeginRenewTokenCore(TimeSpan timeout, System::IdentityModel::Tokens::SecurityToken ^ tokenToBeRenewed, AsyncCallback ^ callback, System::Object ^ state);
protected virtual IAsyncResult BeginRenewTokenCore(TimeSpan timeout, System.IdentityModel.Tokens.SecurityToken tokenToBeRenewed, AsyncCallback callback, object state);
abstract member BeginRenewTokenCore : TimeSpan * System.IdentityModel.Tokens.SecurityToken * AsyncCallback * obj -> IAsyncResult
override this.BeginRenewTokenCore : TimeSpan * System.IdentityModel.Tokens.SecurityToken * AsyncCallback * obj -> IAsyncResult
Protected Overridable Function BeginRenewTokenCore (timeout As TimeSpan, tokenToBeRenewed As SecurityToken, callback As AsyncCallback, state As Object) As IAsyncResult

參數

timeout
TimeSpan

一個 TimeSpan 指定更新安全令牌訊息逾時值的

tokenToBeRenewed
SecurityToken

然後 SecurityToken 續約。

callback
AsyncCallback

AsyncCallback接收非同步閉關操作完成通知的代表。

state
Object

由應用程式指定的物件,包含與非同步關閉操作相關的狀態資訊。

傳回

那 IAsyncResult 個 就是非同步操作。

備註

當你從該 SecurityTokenProvider 類別繼承時,不必覆蓋非同步方法,因為 SecurityTokenProvider 基底類別會基於同步方法提供非同步支援。 因此,除非你必須提供自己的非同步實作,否則你不必覆蓋該 BeginRenewTokenCore 方法。

方法呼叫 BeginRenewToken 該 BeginRenewTokenCore 方法。

適用於