@@ -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