Język

DownstreamWebApi Klasa

Definicja

Uwaga

Use DownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.

Implementacja podrzędnego internetowego interfejsu 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
Dziedziczenie
DownstreamWebApi
Atrybuty
Implementuje

Konstruktory

Nazwa Opis
DownstreamWebApi(ITokenAcquisition, IOptionsMonitor<DownstreamWebApiOptions>, HttpClient, IOptionsMonitor<MicrosoftIdentityOptions>)
Przestarzałe.

Konstruktor.

Metody

Nazwa Opis
CallWebApiForAppAsync(String, String, Action<DownstreamWebApiOptions>, StringContent)
Przestarzałe.

Wywołuje podrzędny internetowy interfejs API dla aplikacji z wymaganymi zakresami.

CallWebApiForUserAsync(String, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal, StringContent)
Przestarzałe.

Wywołuje podrzędny internetowy interfejs API dla użytkownika na podstawie opisu podrzędnego internetowego interfejsu API w konfiguracji.

CallWebApiForUserAsync<TInput,TOutput>(String, TInput, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal)
Przestarzałe.

Wywołuje podrzędny internetowy interfejs API korzystający z kodu JSON z niektórymi danymi i zwraca dane.

Metody rozszerzania

Nazwa Opis
CallWebApiForUserAsync<TOutput>(IDownstreamWebApi, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String)
Przestarzałe.

Wywoływanie internetowego punktu końcowego interfejsu API za pomocą modułu HttpGet i zwracanie silnie typiowanych danych.

GetForUserAsync<TInput>(IDownstreamWebApi, String, TInput, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String)
Przestarzałe.

Wywoływanie internetowego interfejsu API przy użyciu silnie typizowanego danych wejściowych za pomocą metody HttpGet.

GetForUserAsync<TOutput>(IDownstreamWebApi, String, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String)
Przestarzałe.

Uzyskiwanie silnie typizowanej odpowiedzi z internetowego interfejsu API.

PostForUserAsync<TOutput,TInput>(IDownstreamWebApi, String, String, TInput, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String)
Przestarzałe.

Wywołuje internetowy interfejs API za pomocą protokołu HttpPost, zapewniając silnie typizowane dane wejściowe i uzyskując silnie typizowane dane wyjściowe.

PutForUserAsync<TInput>(IDownstreamWebApi, String, String, TInput, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String)
Przestarzałe.

Wywołuje internetowy punkt końcowy interfejsu API za pomocą protokołu HttpPut, zapewniając silnie typizowane dane wejściowe.

PutForUserAsync<TOutput,TInput>(IDownstreamWebApi, String, String, TInput, Action<DownstreamWebApiOptions>, ClaimsPrincipal, String)
Przestarzałe.

Wywołuje internetowy punkt końcowy interfejsu API za pomocą protokołu HttpPut, który silnie typizowane dane wejściowe i zwraca silnie typizowane dane.

Dotyczy