DownstreamApiExtensions.AddDownstreamApi Methode

Definitie

Overloads

Name Description
AddDownstreamApi(IServiceCollection, String, IConfiguration)

Hiermee wordt een benoemde downstream-API-service toegevoegd die is gerelateerd aan een specifieke configuratiesectie.

AddDownstreamApi(IServiceCollection, String, Action<DownstreamApiOptions>)

Hiermee wordt een benoemde downstream-API-service toegevoegd die is geïnitialiseerd met gemachtigden.

AddDownstreamApi(IServiceCollection, String, IConfiguration)

Hiermee wordt een benoemde downstream-API-service toegevoegd die is gerelateerd aan een specifieke configuratiesectie.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddDownstreamApi(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string serviceName, Microsoft.Extensions.Configuration.IConfiguration configuration);
static member AddDownstreamApi : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddDownstreamApi (services As IServiceCollection, serviceName As String, configuration As IConfiguration) As IServiceCollection

Parameters

services
IServiceCollection

diensten.

serviceName
String

Naam van de configuratie voor de service. Dit is de naam die wordt gebruikt bij het aanroepen van de service vanaf controller/pagina's.

configuration
IConfiguration

Configuratie.

Retouren

De bouwer voor ketenen.

Van toepassing op

AddDownstreamApi(IServiceCollection, String, Action<DownstreamApiOptions>)

Hiermee wordt een benoemde downstream-API-service toegevoegd die is geïnitialiseerd met gemachtigden.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddDownstreamApi(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string serviceName, Action<Microsoft.Identity.Abstractions.DownstreamApiOptions> configureOptions);
static member AddDownstreamApi : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Action<Microsoft.Identity.Abstractions.DownstreamApiOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddDownstreamApi (services As IServiceCollection, serviceName As String, configureOptions As Action(Of DownstreamApiOptions)) As IServiceCollection

Parameters

services
IServiceCollection

diensten.

serviceName
String

Naam van de configuratie voor de service. Dit is de naam die wordt gebruikt bij het aanroepen van de service vanaf controller/pagina's.

configureOptions
Action<DownstreamApiOptions>

Actie om de opties te configureren.

Retouren

De bouwer voor ketenen.

Van toepassing op