Language

ResilientTaskServiceProviderExtensions.GetResilientTask<TInput,TOutput> Method

Definition

Resolves the typed TaskDefinition<TInput,TOutput> handle for the task registered under name.

public static Azure.AI.AgentServer.Core.Tasks.TaskDefinition<TInput,TOutput> GetResilientTask<TInput,TOutput>(this IServiceProvider provider, string name);
static member GetResilientTask : IServiceProvider * string -> Azure.AI.AgentServer.Core.Tasks.TaskDefinition<'Input, 'Output>
<Extension()>
Public Function GetResilientTask(Of TInput, TOutput) (provider As IServiceProvider, name As String) As TaskDefinition(Of TInput, TOutput)

Type Parameters

TInput

The task input type.

TOutput

The task output type.

Parameters

provider
IServiceProvider

The service provider.

name
String

The task name it was registered with.

Returns

The typed TaskDefinition<TInput,TOutput> handle.

Applies to