Пример #1
0
        public static void ProvideOperation(KhepriChannel c, Primitives p)
        {
            var action = RMIfy.RMIFor(c, p, c.rString());

            if (action == null)
            {
                c.wInt32(-1);
            }
            else
            {
                c.operations.Add(action);
                c.wInt32(c.operations.Count - 1);
            }
        }
Пример #2
0
        public void ProvideOperation(C c, P p)
        {
            var action = RMIfy.RMIFor(c, p, c.rString());

            if (action == null)
            {
                CleanChannel(c);
                c.wInt32(-1);
            }
            else
            {
                operations.Add(action);
                c.wInt32(operations.Count - 1);
            }
        }