ServiceCollectionExtensions.AddDurableTaskClient Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddDurableTaskClient(IServiceCollection, Action<IDurableTaskClientBuilder>) |
Configures and adds a DurableTaskClient to the service collection. |
AddDurableTaskClient(IServiceCollection, String, Action<IDurableTaskClientBuilder>) |
Configures and adds a DurableTaskClient to the service collection. |
AddDurableTaskClient(IServiceCollection, Action<IDurableTaskClientBuilder>)
Configures and adds a DurableTaskClient to the service collection.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddDurableTaskClient (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.DurableTask.Client.IDurableTaskClientBuilder> configure);
static member AddDurableTaskClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.DurableTask.Client.IDurableTaskClientBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddDurableTaskClient (services As IServiceCollection, configure As Action(Of IDurableTaskClientBuilder)) As IServiceCollection
Parameters
- services
- IServiceCollection
The services to add to.
- configure
- Action<IDurableTaskClientBuilder>
The callback to configure the client.
Returns
The original service collection, for call chaining.
Applies to
AddDurableTaskClient(IServiceCollection, String, Action<IDurableTaskClientBuilder>)
Configures and adds a DurableTaskClient to the service collection.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddDurableTaskClient (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, Action<Microsoft.DurableTask.Client.IDurableTaskClientBuilder> configure);
static member AddDurableTaskClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Action<Microsoft.DurableTask.Client.IDurableTaskClientBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddDurableTaskClient (services As IServiceCollection, name As String, configure As Action(Of IDurableTaskClientBuilder)) As IServiceCollection
Parameters
- services
- IServiceCollection
The services to add to.
- name
- String
Gets the name of the client to add.
- configure
- Action<IDurableTaskClientBuilder>
The callback to configure the client.
Returns
The original service collection, for call chaining.