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.
下游 Web 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
- 属性
- 实现
构造函数
| 名称 | 说明 |
|---|---|
| DownstreamWebApi(ITokenAcquisition, IOptionsMonitor<DownstreamWebApiOptions>, HttpClient, IOptionsMonitor<MicrosoftIdentityOptions>) |
已过时.
构造 函数。 |
方法
| 名称 | 说明 |
|---|---|
| CallWebApiForAppAsync(String, String, Action<DownstreamWebApiOptions>, StringContent) |
已过时.
为应用调用下游 Web API,并具有所需的范围。 |
| CallWebApiForUserAsync(String, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal, StringContent) |
已过时.
根据配置中下游 Web API 的说明为用户调用下游 Web API。 |
| CallWebApiForUserAsync<TInput,TOutput>(String, TInput, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal) |
已过时.
调用使用 JSON 的下游 Web API 和某些数据并返回数据。 |
扩展方法
| 名称 | 说明 |
|---|---|
| CallWebApiForUserAsync<TOutput>(IDownstreamWebApi, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String) |
已过时.
使用 HttpGet 调用 Web API 终结点,并返回强类型数据。 |
| GetForUserAsync<TInput>(IDownstreamWebApi, String, TInput, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String) |
已过时.
使用 HttpGet 调用具有强类型输入的 Web API。 |
| GetForUserAsync<TOutput>(IDownstreamWebApi, String, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String) |
已过时.
从 Web API 获取强类型响应。 |
| PostForUserAsync<TOutput,TInput>(IDownstreamWebApi, String, String, TInput, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String) |
已过时.
使用 HttpPost 调用 Web API,提供强类型输入并获取强类型输出。 |
| PutForUserAsync<TInput>(IDownstreamWebApi, String, String, TInput, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String) |
已过时.
使用 HttpPut 调用 Web API 终结点,提供强类型输入数据。 |
| PutForUserAsync<TOutput,TInput>(IDownstreamWebApi, String, String, TInput, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String) |
已过时.
使用 HttpPut 调用 Web API 终结点,提供强类型输入数据并恢复强类型数据。 |