Skip to content

DurableHttpServiceCollectionExtensions.AddDurableHttp(IServiceCollection, Action<DurableHttpOptions>)

AddDurableHttp(IServiceCollection, Action<DurableHttpOptions>)

staticextension
View source
public static IServiceCollection AddDurableHttp(this IServiceCollection services, Action<DurableHttpOptions>? configureOptions = null)
Adds the services which the durable operation endpoints use, which DurableHttpEndpointRouteBuilderExtensions and NexusEndpointRouteBuilderExtensions map.

Parameters

servicesIServiceCollection
The service collection, which also provides an Orleans IGrainFactory.
configureOptionsAction<DurableHttpOptions>
Configures the operations, or null for the defaults.

Returns

The service collection.