diff --git a/src/Arcus.WebApi.Logging/Extensions/IServiceCollectionExtensions.cs b/src/Arcus.WebApi.Logging/Extensions/IServiceCollectionExtensions.cs
index adc30db2..6b90233e 100644
--- a/src/Arcus.WebApi.Logging/Extensions/IServiceCollectionExtensions.cs
+++ b/src/Arcus.WebApi.Logging/Extensions/IServiceCollectionExtensions.cs
@@ -28,41 +28,6 @@ public static IServiceCollection AddHttpCorrelation(this IServiceCollection serv
return AddHttpCorrelation(services, configureOptions: (HttpCorrelationInfoOptions options) => { });
}
- ///
- /// Adds operation and transaction correlation to the application.
- ///
- /// The services collection containing the dependency injection services.
- /// The function to configure additional options how the correlation works.
- /// Thrown when the is null.
- [Obsolete("Use the " + nameof(AddHttpCorrelation) + " method overload with the " + nameof(HttpCorrelationInfoOptions) + " instead")]
- public static IServiceCollection AddHttpCorrelation(
- this IServiceCollection services,
- Action configureOptions)
- {
- Guard.NotNull(services, nameof(services), "Requires a services collection to add the HTTP correlation services");
-
- services.AddHttpContextAccessor();
- services.AddCorrelation(
- serviceProvider => (HttpCorrelationInfoAccessor) serviceProvider.GetRequiredService(),
- configureOptions);
- services.AddSingleton(serviceProvider =>
- {
- var httpContextAccessor = serviceProvider.GetRequiredService();
- return new HttpCorrelationInfoAccessor(httpContextAccessor);
- });
- services.AddSingleton(serviceProvider =>
- {
- var options = serviceProvider.GetRequiredService>();
- var httpContextAccessor = serviceProvider.GetRequiredService();
- var correlationInfoAccessor = serviceProvider.GetRequiredService();
- var logger = serviceProvider.GetService>();
-
- return new HttpCorrelation(options, httpContextAccessor, correlationInfoAccessor, logger);
- });
-
- return services;
- }
-
///
/// Adds operation and transaction correlation to the application.
///