Skip to content
This repository was archived by the owner on Nov 8, 2020. It is now read-only.

Commit 4cfdedb

Browse files
committed
Fix IgnoreEventsAttribute.
1 parent 82d5bdd commit 4cfdedb

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/Ray.Core/Core/Grains/ObserverGrain.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ public ObserverGrain()
6262
GetInheritor(item, switchMethods, sortList);
6363
}
6464
sortList.Reverse();
65+
foreach (var item in switchMethods)
66+
{
67+
if (!sortList.Contains(item))
68+
sortList.Add(item);
69+
}
6570
var defaultLabel = ilGen.DefineLabel();
6671
var lastLable = ilGen.DefineLabel();
6772
var declare_1 = ilGen.DeclareLocal(typeof(Task));

src/Ray.Core/Snapshot/SnapshotHandler.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ public SnapshotHandler()
5151
GetInheritor(item, switchMethods, sortList);
5252
}
5353
sortList.Reverse();
54+
foreach (var item in switchMethods)
55+
{
56+
if (!sortList.Contains(item))
57+
sortList.Add(item);
58+
}
5459
var defaultLabel = ilGen.DefineLabel();
5560
var isShort = sortList.Count < 12;
5661
foreach (var item in sortList)

0 commit comments

Comments
 (0)