語言

IDownstreamWebApi 介面

定義

警告

Use IDownstreamApi 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 IDownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.", false)]
public interface IDownstreamWebApi
[<System.Obsolete("Use IDownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.", false)>]
type IDownstreamWebApi = interface
Public Interface IDownstreamWebApi
衍生
屬性

方法

名稱 Description
CallWebApiForAppAsync(String, Action<DownstreamWebApiOptions>, StringContent)
已淘汰.

呼叫應用程式的下游網頁 API,並附上所需的範圍。

CallWebApiForAppAsync(String, String, Action<DownstreamWebApiOptions>, StringContent)
已淘汰.

呼叫應用程式的下游網頁 API,並附上所需的範圍。

CallWebApiForUserAsync(String, Action<DownstreamWebApiOptions>, ClaimsPrincipal, StringContent)
已淘汰.

根據設定中對下游網頁 API 的描述,呼叫使用者的下游網頁 API。

CallWebApiForUserAsync(String, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal, StringContent)
已淘汰.

根據設定中對下游網頁 API 的描述,呼叫使用者的下游網頁 API。

CallWebApiForUserAsync<TInput,TOutput>(String, TInput, Action<DownstreamWebApiOptions>, ClaimsPrincipal)
已淘汰.

呼叫一個下游的網頁 API,使用 JSON 並回傳部分資料。

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 端點,驗證強型別輸入資料並回傳強型別資料。

適用於