ProCoSys / Bifrost

Application Development Framework promoting good development practices such as CQRS and MVVM (see readme)
http://bifrost.dolittle.com
Other
1 stars 1 forks source link

RestServiceMethodInvoker doesn't handle concepts anymore #63

Closed bnordli closed 8 years ago

bnordli commented 8 years ago

Regression from 3.0.2:

When calling a rest method having concept as a parameter, the following error occurs:

System.ArgumentException: Object of type 'System.Int64' cannot be converted to type 'Concepts.RegisterId'.
   at System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast)
   at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
   at System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig)
   at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Bifrost.Web.Services.RestServiceMethodInvoker.Invoke(String baseUrl, Object instance, Uri uri, IDictionary`2 inputParameters) in E:\T\f0471d076df39445\Source\Bifrost.Web\Services\RestServiceMethodInvoker.cs:line 52
   at Bifrost.Web.Services.RestServiceRouteHttpHandler.ProcessRequest(HttpContext context) in E:\T\f0471d076df39445\Source\Bifrost.Web\Services\RestServiceRouteHttpHandler.cs:line 73