Skip to content

Commit 4f5e666

Browse files
committed
fix: fixes after bum fastendpoints
1 parent 75f38b1 commit 4f5e666

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

API/SOFTURE.Common.StronglyTypedIdentifiers/API/Extensions/ParserExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using FastEndpoints;
2+
using Microsoft.Extensions.Primitives;
23
using SOFTURE.Common.StronglyTypedIdentifiers.API.Parsers;
34
using SOFTURE.Language.Common;
45

@@ -34,7 +35,7 @@ public static void RegisterIdentifierParsers<TLanguageAssemblyMarker>(this Confi
3435
private static void RegisterParser(this Config config, Type identifierType, string parserMethodName)
3536
{
3637
var method = typeof(IdentifierParsers).GetMethod(parserMethodName)?.MakeGenericMethod(identifierType);
37-
var delegateType = typeof(Func<,>).MakeGenericType(typeof(object), typeof(ParseResult));
38+
var delegateType = typeof(Func<,>).MakeGenericType(typeof(StringValues), typeof(ParseResult));
3839
var parserDelegate = Delegate.CreateDelegate(delegateType, method!);
3940

4041
var bindingMethod = config.Binding.GetType().GetMethod(ValueParserForMethodName, [delegateType])

0 commit comments

Comments
 (0)