ResilientTaskEnablementExtensions.SetResilientTasksEnabled 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
| Name | Description |
|---|---|
| SetResilientTasksEnabled(AgentHostBuilder, Boolean) |
Enables or disables durable task execution and recovery for an agent host. |
| SetResilientTasksEnabled(IServiceCollection, Boolean) |
Enables or disables durable task execution and recovery for the application service collection. The default is disabled; call this before host startup to opt in. |
| SetResilientTasksEnabled(IHostApplicationBuilder, Boolean) |
Enables or disables durable task execution and recovery for an application host. |
SetResilientTasksEnabled(AgentHostBuilder, Boolean)
Enables or disables durable task execution and recovery for an agent host.
public static Azure.AI.AgentServer.Core.AgentHostBuilder SetResilientTasksEnabled(this Azure.AI.AgentServer.Core.AgentHostBuilder builder, bool enabled = true);
static member SetResilientTasksEnabled : Azure.AI.AgentServer.Core.AgentHostBuilder * bool -> Azure.AI.AgentServer.Core.AgentHostBuilder
<Extension()>
Public Function SetResilientTasksEnabled (builder As AgentHostBuilder, Optional enabled As Boolean = true) As AgentHostBuilder
Parameters
- builder
- AgentHostBuilder
The agent host builder.
- enabled
- Boolean
true to enable resilient tasks.
Returns
The same agent host builder for chaining.
Applies to
SetResilientTasksEnabled(IServiceCollection, Boolean)
Enables or disables durable task execution and recovery for the application service collection. The default is disabled; call this before host startup to opt in.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection SetResilientTasksEnabled(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, bool enabled = true);
static member SetResilientTasksEnabled : Microsoft.Extensions.DependencyInjection.IServiceCollection * bool -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function SetResilientTasksEnabled (services As IServiceCollection, Optional enabled As Boolean = true) As IServiceCollection
Parameters
- services
- IServiceCollection
The application services.
- enabled
- Boolean
true to enable resilient tasks.
Returns
The same service collection for chaining.
Applies to
SetResilientTasksEnabled(IHostApplicationBuilder, Boolean)
Enables or disables durable task execution and recovery for an application host.
public static Microsoft.Extensions.Hosting.IHostApplicationBuilder SetResilientTasksEnabled(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, bool enabled = true);
static member SetResilientTasksEnabled : Microsoft.Extensions.Hosting.IHostApplicationBuilder * bool -> Microsoft.Extensions.Hosting.IHostApplicationBuilder
<Extension()>
Public Function SetResilientTasksEnabled (host As IHostApplicationBuilder, Optional enabled As Boolean = true) As IHostApplicationBuilder
Parameters
The host application builder.
- enabled
- Boolean
true to enable resilient tasks.
Returns
The same host builder for chaining.