Skip to content

Commit

Permalink
Update src/Hosting.Services/HostBuilderExtensions.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Cully <2370032+K-Cully@users.noreply.github.com>
  • Loading branch information
Gnol-VN and K-Cully authored Jan 24, 2025
1 parent cbe8ea2 commit 1435d8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Hosting.Services/HostBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ private static IHost BuildServiceFabricService<TRunner, TService, TContext>(
.AddOmexServiceFabricDependencies<TContext>()
.AddSingleton<IOmexServiceRegistrator, TRunner>()
.AddHostedService<OmexHostedService>();
// If specific context constructs are not registered, add defaults for telemetry purposes
collection.TryAddTransient<IServiceContext, EmptyServiceContext>();
collection.TryAddTransient<IExecutionContext, BaseExecutionContext>();
})
Expand Down

0 comments on commit 1435d8a

Please sign in to comment.