本文整理匯總了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;
}