Język

ResilientTaskEnablementExtensions.SetResilientTasksEnabled Method

Definition

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)

Source:
ResilientTaskEnablementExtensions.cs

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)

Source:
ResilientTaskEnablementExtensions.cs

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)

Source:
ResilientTaskEnablementExtensions.cs

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

host
IHostApplicationBuilder

The host application builder.

enabled
Boolean

true to enable resilient tasks.

Returns

The same host builder for chaining.

Applies to