本文整理汇总了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);
}
示例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;
}
示例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;
}
示例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;
}