Hangfire.MissionControl
Hangfire.MissionControl copied to clipboard
List<string> not supported
Hi, I have a custom class as parameter that is using List
Object of type 'System.String[]' cannot be converted to type 'System.Collections.Generic.List
1[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