File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
src/ModelContextProtocol.Core/Server Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -70,14 +70,6 @@ internal sealed partial class AIFunctionMcpServerTool : McpServerTool
70
70
options ) ;
71
71
}
72
72
73
- // TODO: Fix the need for this suppression.
74
- [ UnconditionalSuppressMessage ( "ReflectionAnalysis" , "IL2111:ReflectionToDynamicallyAccessedMembers" ,
75
- Justification = "AIFunctionFactory ensures that the Type passed to AIFunctionFactoryOptions.CreateInstance has public constructors preserved" ) ]
76
- internal static Func < Type , AIFunctionArguments , object > GetCreateInstanceFunc ( ) =>
77
- static ( [ DynamicallyAccessedMembers ( DynamicallyAccessedMemberTypes . PublicConstructors ) ] type , args ) => args . Services is { } services ?
78
- ActivatorUtilities . CreateInstance ( services , type ) :
79
- Activator . CreateInstance ( type ) ! ;
80
-
81
73
private static AIFunctionFactoryOptions CreateAIFunctionFactoryOptions (
82
74
MethodInfo method , McpServerToolCreateOptions ? options ) =>
83
75
new ( )
You can’t perform that action at this time.
0 commit comments