From 2650737d2383f367d9423215454c20501e834ea4 Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Tue, 24 Oct 2023 13:20:51 +0200 Subject: [PATCH] fix: Remove double regristeritions of endpount inherit from IEndpointAndServiceDefinition since IEndpointAndServiceDefinition inherits from IEndpointDefinition --- .../Extensions/EndpointDefinitionExtensions.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Atc.Rest.MinimalApi/Extensions/EndpointDefinitionExtensions.cs b/src/Atc.Rest.MinimalApi/Extensions/EndpointDefinitionExtensions.cs index 734a2ed..6e73af1 100644 --- a/src/Atc.Rest.MinimalApi/Extensions/EndpointDefinitionExtensions.cs +++ b/src/Atc.Rest.MinimalApi/Extensions/EndpointDefinitionExtensions.cs @@ -66,8 +66,6 @@ public static void AddEndpointAndServiceDefinitions( { endpointDefinition.DefineServices(services); } - - services.AddSingleton(endpointDefinitions as IReadOnlyCollection); } ///