Partilhar via


DurableTaskExtension Classe

Definição

Configuração para a extensão Durable Functions.

[Microsoft.Azure.WebJobs.Description.Extension("DurableTask", "DurableTask")]
public class DurableTaskExtension : DurableTask.Core.INameVersionObjectManager<DurableTask.Core.TaskActivity>, DurableTask.Core.INameVersionObjectManager<DurableTask.Core.TaskOrchestration>, IDisposable, Microsoft.Azure.WebJobs.Host.Config.IExtensionConfigProvider, Microsoft.Azure.WebJobs.IAsyncConverter<System.Net.Http.HttpRequestMessage,System.Net.Http.HttpResponseMessage>
[Microsoft.Azure.WebJobs.Description.Extension("DurableTask", "DurableTask")]
public class DurableTaskExtension : DurableTask.Core.INameVersionObjectManager<DurableTask.Core.TaskActivity>, DurableTask.Core.INameVersionObjectManager<DurableTask.Core.TaskOrchestration>, Microsoft.Azure.WebJobs.Host.Config.IExtensionConfigProvider, Microsoft.Azure.WebJobs.IAsyncConverter<System.Net.Http.HttpRequestMessage,System.Net.Http.HttpResponseMessage>
[<Microsoft.Azure.WebJobs.Description.Extension("DurableTask", "DurableTask")>]
type DurableTaskExtension = class
    interface IExtensionConfigProvider
    interface IDisposable
    interface IAsyncConverter<HttpRequestMessage, HttpResponseMessage>
    interface INameVersionObjectManager<TaskOrchestration>
    interface INameVersionObjectManager<TaskActivity>
[<Microsoft.Azure.WebJobs.Description.Extension("DurableTask", "DurableTask")>]
type DurableTaskExtension = class
    interface IExtensionConfigProvider
    interface IAsyncConverter<HttpRequestMessage, HttpResponseMessage>
    interface INameVersionObjectManager<TaskOrchestration>
    interface INameVersionObjectManager<TaskActivity>
Public Class DurableTaskExtension
Implements IAsyncConverter(Of HttpRequestMessage, HttpResponseMessage), IDisposable, IExtensionConfigProvider, INameVersionObjectManager(Of TaskActivity), INameVersionObjectManager(Of TaskOrchestration)
Public Class DurableTaskExtension
Implements IAsyncConverter(Of HttpRequestMessage, HttpResponseMessage), IExtensionConfigProvider, INameVersionObjectManager(Of TaskActivity), INameVersionObjectManager(Of TaskOrchestration)
Herança
DurableTaskExtension
Atributos
Microsoft.Azure.WebJobs.Description.ExtensionAttribute
Implementações
DurableTask.Core.INameVersionObjectManager<DurableTask.Core.TaskActivity> DurableTask.Core.INameVersionObjectManager<DurableTask.Core.TaskOrchestration> Microsoft.Azure.WebJobs.Host.Config.IExtensionConfigProvider Microsoft.Azure.WebJobs.IAsyncConverter<HttpRequestMessage,HttpResponseMessage> IDisposable

Construtores

DurableTaskExtension(IOptions<DurableTaskOptions>, ILoggerFactory, INameResolver, IConnectionStringResolver)

Inicializa uma nova instância do DurableTaskExtension.

DurableTaskExtension(IOptions<DurableTaskOptions>, ILoggerFactory, INameResolver, IEnumerable<IDurabilityProviderFactory>, IApplicationLifetimeWrapper, IDurableHttpMessageHandlerFactory, ILifeCycleNotificationHelper, IMessageSerializerSettingsFactory, IPlatformInformation, IErrorSerializerSettingsFactory, IWebHookProvider, ITelemetryActivator)

Inicializa uma nova instância do DurableTaskExtension.

Métodos

DeleteTaskHubAsync()

Exclui todos os dados armazenados no hub de tarefas atual.

Dispose()

Configuração para a extensão Durable Functions.

GetClient(DurableClientAttribute)

Obtém uma IDurableClient configuração using de uma DurableClientAttribute instância do .

GetClient(OrchestrationClientAttribute)

Obtém uma DurableOrchestrationClient configuração using de uma OrchestrationClientAttribute instância do .

Implantações explícitas de interface

IAsyncConverter<HttpRequestMessage,HttpResponseMessage>.ConvertAsync(HttpRequestMessage, CancellationToken)

Configuração para a extensão Durable Functions.

IExtensionConfigProvider.Initialize(ExtensionConfigContext)

Chamada de inicialização interna do host WebJobs.

INameVersionObjectManager<TaskActivity>.Add(ObjectCreator<TaskActivity>)

Chamado pela estrutura de tarefas durável: Não usado.

INameVersionObjectManager<TaskActivity>.GetObject(String, String)

Chamado pela Estrutura de Tarefas Duráveis: retorna o especificado DurableTask.Core.TaskActivity.

INameVersionObjectManager<TaskOrchestration>.Add(ObjectCreator<TaskOrchestration>)

Chamado pela Estrutura de Tarefas Duráveis: Não usado.

INameVersionObjectManager<TaskOrchestration>.GetObject(String, String)

Chamado pela Estrutura de Tarefas Duráveis: retorna o especificado DurableTask.Core.TaskOrchestration.

Aplica-se a