From 7ab76f6d77003cddfe70c62959cdea9f79de6642 Mon Sep 17 00:00:00 2001 From: Daniel Gut Date: Thu, 9 Jan 2020 20:33:44 +0100 Subject: [PATCH] fix(DI): fix hashprovider DI which has multiple constructors --- .../Execution/Extensions/QueryExecutionBuilderExtensions.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Core/Core/Execution/Extensions/QueryExecutionBuilderExtensions.cs b/src/Core/Core/Execution/Extensions/QueryExecutionBuilderExtensions.cs index 6ae98f99b4b..600dc0faa3e 100644 --- a/src/Core/Core/Execution/Extensions/QueryExecutionBuilderExtensions.cs +++ b/src/Core/Core/Execution/Extensions/QueryExecutionBuilderExtensions.cs @@ -702,8 +702,7 @@ public static IQueryExecutionBuilder AddDefaultDocumentHashProvider( } builder.Services.TryAddSingleton< - IDocumentHashProvider, - MD5DocumentHashProvider>(); + IDocumentHashProvider>(new MD5DocumentHashProvider()); return builder; }