diff --git a/Directory.Packages.props b/Directory.Packages.props
index b8d1c8d88..b80856672 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -32,6 +32,7 @@
+
diff --git a/src/StreamJsonRpc/ProxyGeneration.cs b/src/StreamJsonRpc/ProxyGeneration.cs
index 7b4cae738..2ad37b363 100644
--- a/src/StreamJsonRpc/ProxyGeneration.cs
+++ b/src/StreamJsonRpc/ProxyGeneration.cs
@@ -302,7 +302,7 @@ internal static TypeInfo Get(Type contractInterface, ReadOnlySpan addition
{
foreach (RpcTargetMetadata.TargetMethodMetadata methodMetadata in overloads)
{
- MethodInfo method = methodMetadata.Method;
+ MethodInfo method = methodMetadata.MethodInfo;
if (!implementedMethods.Add(method))
{
continue;
diff --git a/src/StreamJsonRpc/Reflection/RpcTargetInfo.cs b/src/StreamJsonRpc/Reflection/RpcTargetInfo.cs
index 51829ba71..70f6437c8 100644
--- a/src/StreamJsonRpc/Reflection/RpcTargetInfo.cs
+++ b/src/StreamJsonRpc/Reflection/RpcTargetInfo.cs
@@ -238,7 +238,7 @@ internal void AddLocalRpcMethod(MethodInfo handler, object? target, JsonRpcMetho
string rpcMethodName = methodRpcSettings?.Name ?? handler.Name;
lock (this.SyncObject)
{
- MethodSignatureAndTarget methodTarget = new(RpcTargetMetadata.TargetMethodMetadata.From(handler, methodRpcSettings), target, attribute: null, synchronizationContext);
+ MethodSignatureAndTarget methodTarget = new(RpcTargetMetadata.TargetMethodMetadata.From(handler, methodRpcSettings, shape: null), target, attribute: null, synchronizationContext);
this.TraceLocalMethodAdded(rpcMethodName, methodTarget);
if (this.targetRequestMethodToClrMethodMap.TryGetValue(rpcMethodName, out List? existingList))
{
diff --git a/src/StreamJsonRpc/Reflection/TargetMethod.cs b/src/StreamJsonRpc/Reflection/TargetMethod.cs
index 50522f82b..6c15a5048 100644
--- a/src/StreamJsonRpc/Reflection/TargetMethod.cs
+++ b/src/StreamJsonRpc/Reflection/TargetMethod.cs
@@ -82,7 +82,7 @@ internal TargetMethod(
///
/// Gets the that will be invoked to handle the request, if one was found.
///
- public MethodInfo? TargetMethodInfo => this.signature?.Method;
+ public MethodInfo? TargetMethodInfo => this.signature?.MethodInfo;
///
/// Gets all the exceptions thrown while trying to deserialize arguments to candidate parameter types.
@@ -107,12 +107,12 @@ internal string LookupErrorMessage
}
}
- internal Type? ReturnType => this.signature?.Method.ReturnType;
+ internal Type? ReturnType => this.signature?.ReturnType;
///
public override string ToString()
{
- return this.signature is not null ? $"{this.signature.Method.DeclaringType!.FullName}.{this.signature.Name}({this.GetParameterSignature()})" : "";
+ return this.signature is not null ? $"{this.signature.MethodInfo.DeclaringType?.FullName}.{this.signature.Name}({this.GetParameterSignature()})" : "";
}
internal async Task