Skip to content

Commit cb2e4db

Browse files
committed
Merge branch 'dev' of https://github.com/triwire/Hangfire into triwire-dev
2 parents 6cb9bce + be7e423 commit cb2e4db

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎src/Hangfire.Core/Storage/InvocationData.cs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,14 @@ private static object DeserializeArgument(string argument, Type type)
170170
return value;
171171
}
172172

173+
private static IEnumerable<MethodInfo> GetAllMethods(Type type)
174+
{
175+
return type.IsInterface ? type.GetInterfaces().SelectMany(x => x.GetMethods()) : type.GetMethods();
176+
}
177+
173178
private static MethodInfo GetNonOpenMatchingMethod(Type type, string name, Type[] parameterTypes)
174179
{
175-
var methodCandidates = type.GetMethods();
180+
var methodCandidates = GetAllMethods(type);
176181

177182
foreach (var methodCandidate in methodCandidates)
178183
{

0 commit comments

Comments
 (0)