Esempio n. 1
0
    public void TransactionUnpackReact(T t, int i)
    {
        if (Empty())
        {
            return;
        }
        if (single != null)
        {
            UpgradeToMultyPriority();
        }
        var list = multipriorityReactions[i];

        if (list == null || list.Count == 0)
        {
            return;
        }

        Action act = () =>
        {
            foreach (var action in list)
            {
                action(t);
            }
        };

        Transaction.AddDataAction(i, act);
    }