當前位置: 首頁>>代碼示例>>C#>>正文


C# IoObject.rawGetSlotContext方法代碼示例

本文整理匯總了C#中io.IoObject.rawGetSlotContext方法的典型用法代碼示例。如果您正苦於以下問題:C# IoObject.rawGetSlotContext方法的具體用法?C# IoObject.rawGetSlotContext怎麽用?C# IoObject.rawGetSlotContext使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在io.IoObject的用法示例。


在下文中一共展示了IoObject.rawGetSlotContext方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: perform

        public IoObject perform(IoObject target, IoObject locals, IoObject message)
        {
            IoMessage msg = message as IoMessage;
            IoObject context = null;
            IoObject slotValue = target.rawGetSlotContext(msg.messageName, out context);

            if (slotValue == null)
                slotValue = target.clrGetSlot(msg);

            if (slotValue != null)
            {
                return slotValue.activate(slotValue, target, locals, msg, context);
            }
            if (target.isLocals)
            {
                return IoObject.slotLocalsForward(target, locals, message);
            }
            return target.forward(target, locals, message);
        }
開發者ID:devaspot,項目名稱:io,代碼行數:19,代碼來源:IoObject.cs

示例2: forward

        public IoObject forward(IoObject target, IoObject locals, IoObject message)
        {
            IoMessage m = message as IoMessage;
            IoObject context = null;
            IoObject forwardSlot = target.rawGetSlotContext(target.state.forwardMessage.messageName, out context);

            //if (forwardSlot != null)
            //    return forwardSlot.activate(forwardSlot, locals, m, context);

            Console.WriteLine("'{0}' does not respond to message '{1}'",
                target.name, m.messageName.ToString());
            return target;
        }
開發者ID:devaspot,項目名稱:io,代碼行數:13,代碼來源:IoObject.cs

示例3: initClone

 // Object Public Raw Methods
 public IoObject initClone(IoObject target, IoObject locals, IoMessage m, IoObject newObject)
 {
     IoObject context = null;
     IoObject initSlot = target.rawGetSlotContext(target.state.initMessage.messageName, out context);
     if (initSlot != null)
        initSlot.activate(initSlot, newObject, locals, target.state.initMessage, context);
     return newObject;
 }
開發者ID:devaspot,項目名稱:io,代碼行數:9,代碼來源:IoObject.cs

示例4: activate

 public IoObject activate(IoObject self, IoObject target, IoObject locals, IoMessage m)
 {
     if (self.isActivatable)
     {
         IoObject context = null;
         IoObject slotValue = self.rawGetSlotContext(self.state.activateMessage.messageName, out context);
         if (slotValue != null)
         {
             // ?? мы шо в цикле ???
             return activate(slotValue, target, locals, m, context);
         }
         return state.ioNil;
     } else
         return self;
 }
開發者ID:devaspot,項目名稱:io,代碼行數:15,代碼來源:IoObject.cs


注:本文中的io.IoObject.rawGetSlotContext方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。