다음을 통해 공유


DurableTaskExtension Constructors

Definition

Overloads

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

Initializes a new instance of the DurableTaskExtension.

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

Initializes a new instance of the DurableTaskExtension.

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

Source:
DurableTaskExtension.cs

Initializes a new instance of the DurableTaskExtension.

public DurableTaskExtension (Microsoft.Extensions.Options.IOptions<Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableTaskOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Azure.WebJobs.INameResolver nameResolver, Microsoft.Azure.WebJobs.Extensions.DurableTask.IConnectionStringResolver connectionStringResolver);
new Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableTaskExtension : Microsoft.Extensions.Options.IOptions<Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableTaskOptions> * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Azure.WebJobs.INameResolver * Microsoft.Azure.WebJobs.Extensions.DurableTask.IConnectionStringResolver -> Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableTaskExtension
Public Sub New (options As IOptions(Of DurableTaskOptions), loggerFactory As ILoggerFactory, nameResolver As INameResolver, connectionStringResolver As IConnectionStringResolver)

Parameters

options
IOptions<DurableTaskOptions>

The configuration options for this extension.

loggerFactory
ILoggerFactory

The logger factory used for extension-specific logging and orchestration tracking.

nameResolver
Microsoft.Azure.WebJobs.INameResolver

The name resolver to use for looking up application settings.

connectionStringResolver
IConnectionStringResolver

The resolver to use for looking up connection strings.

Applies to

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

Source:
DurableTaskExtension.cs

Initializes a new instance of the DurableTaskExtension.

public DurableTaskExtension (Microsoft.Extensions.Options.IOptions<Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableTaskOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Azure.WebJobs.INameResolver nameResolver, System.Collections.Generic.IEnumerable<Microsoft.Azure.WebJobs.Extensions.DurableTask.IDurabilityProviderFactory> orchestrationServiceFactories, Microsoft.Azure.WebJobs.Extensions.DurableTask.IApplicationLifetimeWrapper hostLifetimeService, Microsoft.Azure.WebJobs.Extensions.DurableTask.IDurableHttpMessageHandlerFactory durableHttpMessageHandlerFactory = default, Microsoft.Azure.WebJobs.Extensions.DurableTask.ILifeCycleNotificationHelper lifeCycleNotificationHelper = default, Microsoft.Azure.WebJobs.Extensions.DurableTask.IMessageSerializerSettingsFactory messageSerializerSettingsFactory = default, Microsoft.Azure.WebJobs.Extensions.DurableTask.IPlatformInformation platformInformationService = default, Microsoft.Azure.WebJobs.Extensions.DurableTask.IErrorSerializerSettingsFactory errorSerializerSettingsFactory = default, Microsoft.Azure.WebJobs.Host.Config.IWebHookProvider webhookProvider = default, Microsoft.Azure.WebJobs.Extensions.DurableTask.Correlation.ITelemetryActivator telemetryActivator = default);
new Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableTaskExtension : Microsoft.Extensions.Options.IOptions<Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableTaskOptions> * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Azure.WebJobs.INameResolver * seq<Microsoft.Azure.WebJobs.Extensions.DurableTask.IDurabilityProviderFactory> * Microsoft.Azure.WebJobs.Extensions.DurableTask.IApplicationLifetimeWrapper * Microsoft.Azure.WebJobs.Extensions.DurableTask.IDurableHttpMessageHandlerFactory * Microsoft.Azure.WebJobs.Extensions.DurableTask.ILifeCycleNotificationHelper * Microsoft.Azure.WebJobs.Extensions.DurableTask.IMessageSerializerSettingsFactory * Microsoft.Azure.WebJobs.Extensions.DurableTask.IPlatformInformation * Microsoft.Azure.WebJobs.Extensions.DurableTask.IErrorSerializerSettingsFactory * Microsoft.Azure.WebJobs.Host.Config.IWebHookProvider * Microsoft.Azure.WebJobs.Extensions.DurableTask.Correlation.ITelemetryActivator -> Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableTaskExtension
Public Sub New (options As IOptions(Of DurableTaskOptions), loggerFactory As ILoggerFactory, nameResolver As INameResolver, orchestrationServiceFactories As IEnumerable(Of IDurabilityProviderFactory), hostLifetimeService As IApplicationLifetimeWrapper, Optional durableHttpMessageHandlerFactory As IDurableHttpMessageHandlerFactory = Nothing, Optional lifeCycleNotificationHelper As ILifeCycleNotificationHelper = Nothing, Optional messageSerializerSettingsFactory As IMessageSerializerSettingsFactory = Nothing, Optional platformInformationService As IPlatformInformation = Nothing, Optional errorSerializerSettingsFactory As IErrorSerializerSettingsFactory = Nothing, Optional webhookProvider As IWebHookProvider = Nothing, Optional telemetryActivator As ITelemetryActivator = Nothing)

Parameters

options
IOptions<DurableTaskOptions>

The configuration options for this extension.

loggerFactory
ILoggerFactory

The logger factory used for extension-specific logging and orchestration tracking.

nameResolver
Microsoft.Azure.WebJobs.INameResolver

The name resolver to use for looking up application settings.

orchestrationServiceFactories
IEnumerable<IDurabilityProviderFactory>

The factories used to create orchestration service based on the configured storage provider.

hostLifetimeService
IApplicationLifetimeWrapper

The host shutdown notification service for detecting and reacting to host shutdowns.

durableHttpMessageHandlerFactory
IDurableHttpMessageHandlerFactory

The HTTP message handler that handles HTTP requests and HTTP responses.

lifeCycleNotificationHelper
ILifeCycleNotificationHelper

The lifecycle notification helper used for custom orchestration tracking.

messageSerializerSettingsFactory
IMessageSerializerSettingsFactory

The factory used to create Newtonsoft.Json.JsonSerializerSettings for message settings.

platformInformationService
IPlatformInformation

The platform information provider to inspect the OS, app service plan, and other enviroment information.

errorSerializerSettingsFactory
IErrorSerializerSettingsFactory

The factory used to create Newtonsoft.Json.JsonSerializerSettings for error settings.

webhookProvider
Microsoft.Azure.WebJobs.Host.Config.IWebHookProvider

Provides webhook urls for HTTP management APIs.

telemetryActivator
ITelemetryActivator

The activator of DistributedTracing. .netstandard2.0 only.

Applies to