DownstreamWebApi 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Use DownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.
下游網頁 API 的實作。
[System.Obsolete("Use DownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.", false)]
public class DownstreamWebApi : Microsoft.Identity.Web.IDownstreamWebApi
[<System.Obsolete("Use DownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.", false)>]
type DownstreamWebApi = class
interface IDownstreamWebApi
Public Class DownstreamWebApi
Implements IDownstreamWebApi
- 繼承
-
DownstreamWebApi
- 屬性
- 實作
建構函式
| 名稱 | Description |
|---|---|
| DownstreamWebApi(ITokenAcquisition, IOptionsMonitor<DownstreamWebApiOptions>, HttpClient, IOptionsMonitor<MicrosoftIdentityOptions>) |
已淘汰.
構造 函數。 |
方法
| 名稱 | Description |
|---|---|
| CallWebApiForAppAsync(String, String, Action<DownstreamWebApiOptions>, StringContent) |
已淘汰.
呼叫應用程式的下游網頁 API,並附上所需的範圍。 |
| CallWebApiForUserAsync(String, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal, StringContent) |
已淘汰.
根據設定中對下游網頁 API 的描述,呼叫使用者的下游網頁 API。 |
| CallWebApiForUserAsync<TInput,TOutput>(String, TInput, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal) |
已淘汰.
呼叫一個下游的網頁 API,使用 JSON 並回傳部分資料。 |
擴充方法
| 名稱 | Description |
|---|---|
| CallWebApiForUserAsync<TOutput>(IDownstreamWebApi, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String) |
已淘汰.
呼叫一個帶有 HttpGet 的網頁 API 端點,並回傳強型別的資料。 |
| GetForUserAsync<TInput>(IDownstreamWebApi, String, TInput, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String) |
已淘汰.
呼叫一個帶有強型別輸入的網頁 API,並用 HttpGet。 |
| GetForUserAsync<TOutput>(IDownstreamWebApi, String, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String) |
已淘汰.
從網頁 API 獲得強烈類型的回應。 |
| PostForUserAsync<TOutput,TInput>(IDownstreamWebApi, String, String, TInput, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String) |
已淘汰.
用 HttpPost 呼叫網頁 API,提供強型別輸入,輸出也強型別。 |
| PutForUserAsync<TInput>(IDownstreamWebApi, String, String, TInput, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String) |
已淘汰.
使用 HttpPut 呼叫網頁 API 端點,提供強型別的輸入資料。 |
| PutForUserAsync<TOutput,TInput>(IDownstreamWebApi, String, String, TInput, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String) |
已淘汰.
用 HttpPut 呼叫網頁 API 端點,驗證強型別輸入資料並回傳強型別資料。 |