Skip to content

Commit f4703c0

Browse files
authored
Patch PlatformInfoProvider exception in Functions V1 (#1741)
1 parent 95e6776 commit f4703c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WebJobs.Extensions.DurableTask/DurableTaskExtension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class DurableTaskExtension :
7474
private readonly bool isOptionsConfigured;
7575
private readonly IApplicationLifetimeWrapper hostLifetimeService = HostLifecycleService.NoOp;
7676
#pragma warning disable CS0612 // Type or member is obsolete
77-
private readonly IPlatformInformationService platformInformationService;
77+
private IPlatformInformationService platformInformationService;
7878
#pragma warning restore CS0612 // Type or member is obsolete
7979
private IDurabilityProviderFactory durabilityProviderFactory;
8080
private INameResolver nameResolver;
@@ -202,7 +202,6 @@ internal DurableTaskExtension(
202202
: this(options, loggerFactory, nameResolver, orchestrationServiceFactories, shutdownNotification, durableHttpMessageHandlerFactory)
203203
{
204204
this.connectionStringResolver = connectionStringResolver;
205-
this.platformInformationService = platformInformationService;
206205
}
207206

208207
/// <summary>
@@ -503,6 +502,7 @@ private void InitializeForFunctionsV1(ExtensionConfigContext context)
503502
ILogger logger = this.loggerFactory.CreateLogger(LoggerCategoryName);
504503
this.TraceHelper = new EndToEndTraceHelper(logger, this.Options.Tracing.TraceReplayEvents);
505504
this.connectionStringResolver = new WebJobsConnectionStringProvider();
505+
this.platformInformationService = new DefaultPlatformInformationProvider(this.nameResolver);
506506
this.durabilityProviderFactory = new AzureStorageDurabilityProviderFactory(
507507
new OptionsWrapper<DurableTaskOptions>(this.Options),
508508
this.connectionStringResolver,

0 commit comments

Comments
 (0)