ResilientTaskServiceProviderExtensions.GetResilientTask<TInput,TOutput> 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.
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.