当前位置: 首页>>代码示例>>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;未经允许,请勿转载。