Hangfire.MissionControl icon indicating copy to clipboard operation
Hangfire.MissionControl copied to clipboard

List<string> not supported

Open cocoon opened this issue 4 months ago • 0 comments

Hi, I have a custom class as parameter that is using List and it causes this error:

Object of type 'System.String[]' cannot be converted to type 'System.Collections.Generic.List1[System.String]'.`

fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
      An unhandled exception has occurred while executing the request.
      System.ArgumentException: Object of type 'System.String[]' cannot be converted to type 'System.Collections.Generic.List`1[System.String]'.
         at System.RuntimeType.CheckValue(Object& value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
         at System.Reflection.RuntimeMethodInfo.InvokePropertySetter(Object obj, BindingFlags invokeAttr, Binder binder, Object parameter, CultureInfo culture)
         at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
         at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
         at System.Reflection.PropertyInfo.SetValue(Object obj, Object value)
         at Hangfire.MissionControl.Extensions.TypeExtensions.CreateSampleInstanceInternal(Type type, Int32 currentDepth, Int32 maxDepth) in ...\Hangfire.MissionControl\Extensions\TypeExtensions.cs:line 49

cocoon avatar Oct 17 '24 14:10 cocoon