From f3b143c0bc404ff0e116144519212e253d4e4d16 Mon Sep 17 00:00:00 2001 From: KageShiron Date: Fri, 8 Nov 2019 18:20:53 +0900 Subject: [PATCH] Fix: CustomSorter should return 0 --- src/MicroBatchFramework/BatchEngine.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/MicroBatchFramework/BatchEngine.cs b/src/MicroBatchFramework/BatchEngine.cs index 15ac5a1e..8be0b5d4 100644 --- a/src/MicroBatchFramework/BatchEngine.cs +++ b/src/MicroBatchFramework/BatchEngine.cs @@ -397,6 +397,11 @@ class CustomSorter : IComparer { public int Compare(MethodInfo x, MethodInfo y) { + if (x.Name == y.Name) + { + return 0; + } + var xc = x.GetCustomAttribute(); var yc = y.GetCustomAttribute();