Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Prise.ReverseProxy/ReverseProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ protected T InvokeOnHostService<T>(params object[] parameters)
{
var callingMethod = GetCallingMethod();
var methodInfo = PriseProxy.FindMethodOnObject(callingMethod as MethodInfo, this);

if (methodInfo.IsGenericMethod)
methodInfo = methodInfo.MakeGenericMethod();

if (methodInfo.GetParameters().Count() != parameters.Count())
throw new ReverseProxyException($"The number of parameters provided to this ReverseProxy {parameters?.Count()} do not match the actual parameter count of the hostService method ({methodInfo.GetParameters().Count()}). Did you forget to provide the correct number of parameters?");

Expand Down