Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnwrapParametersFromDeserializedMethodCallMessage Method returns null #60

Open
kod-nik opened this issue Apr 24, 2024 · 0 comments
Open

Comments

@kod-nik
Copy link

kod-nik commented Apr 24, 2024

Describe the bug
CoreRemoting\RpcMessaging\MessagingExtensionMethods.cs line 43

The UnwrapParametersFromDeserializedMethodCallMessage() method does not determine the type from parameter.ParameterTypeName and returns null.
It's impossible to work because of this.

CoreRemoting\CoreRemoting\RpcMessaging\MethodCallMessageBuilder.cs line 105

ParameterTypeName =  parameterInfo.ParameterType.FullName + "," + parameterInfo.ParameterType.Assembly.GetName().Name,

To Reproduce
Steps to reproduce the behavior:

  • Shared interface:
DataTable TestDt(DataTable dt, long num);
  • Server:
public DataTable TestDt(DataTable dt, long num)
{
    dt.Rows.Clear();
    return dt;
}
  • Client:
var dt = new DataTable();
dt.Columns.Add("CODE");
dt.Rows.Add(dt.NewRow());
dt.AcceptChanges();

var dt2 = proxy.TestDt(dt, 1);

Expected behavior
The method successfully determines the type.

Additional notes

  • Using TargetFramework = net48
  • Using NuGet package version 1.2.0.0
  • Fixed by getting the name from:
parameterInfo.ParameterType.Assembly.GetName().FullName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant