DownstreamRestApiExtensions.AddDownstreamRestApi Method

Definition

Overloads

AddDownstreamRestApi(IServiceCollection, String, IConfiguration)

Adds a named downstream REST API service related to a specific configuration section.

AddDownstreamRestApi(IServiceCollection, String, Action<DownstreamRestApiOptions>)

Adds a named downstream REST API service initialized with delegates.

AddDownstreamRestApi(IServiceCollection, String, IConfiguration)

Adds a named downstream REST API service related to a specific configuration section.

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

Parameters

services
IServiceCollection

services.

serviceName
String

Name of the configuration for the service. This is the name used when calling the service from controller/pages.

configuration
IConfiguration

Configuration.

Returns

The builder for chaining.

Applies to

AddDownstreamRestApi(IServiceCollection, String, Action<DownstreamRestApiOptions>)

Adds a named downstream REST API service initialized with delegates.

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

Parameters

services
IServiceCollection

services.

serviceName
String

Name of the configuration for the service. This is the name which will be used when calling the service from controller/pages.

configureOptions
Action<Microsoft.Identity.Abstractions.DownstreamRestApiOptions>

Action to configure the options.

Returns

The builder for chaining.

Applies to