本文整理汇总了C#中Ice.add方法的典型用法代码示例。如果您正苦于以下问题:C# Ice.add方法的具体用法?C# Ice.add怎么用?C# Ice.add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ice
的用法示例。
在下文中一共展示了Ice.add方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RemoteObjectAdapterI
public RemoteObjectAdapterI(Ice.ObjectAdapter adapter)
{
_adapter = adapter;
_testIntf = TestIntfPrxHelper.uncheckedCast(_adapter.add(new TestI(),
_adapter.getCommunicator().stringToIdentity("test")));
_adapter.activate();
}
示例2: activate
// Add servant to ASM and parent's _contents map.
public void activate(Ice.ObjectAdapter a)
{
NodePrx thisNode = NodePrxHelper.uncheckedCast(a.add(this, _id));
if(_parent != null)
{
_parent.addChild(thisNode);
}
}
示例3: TestI
internal TestI(Ice.ObjectAdapter adapter1, Ice.ObjectAdapter adapter2, ServerLocatorRegistry registry)
{
_adapter1 = adapter1;
_adapter2 = adapter2;
_registry = registry;
_registry.addObject(_adapter1.add(new HelloI(), adapter1.getCommunicator().stringToIdentity("hello")));
}
示例4: PropertyBoxModuleI
///<summary>
/// Constructor
/// </summary>
/// <param name="factory">A BoxModuleFactoryPrx</param>
/// <param name="propertyClassIceId">A string</param>
/// <param name="propertyFunctionsIceIds">A string[]</param>
/// <param name="identifier">A string</param>
public PropertyBoxModuleI(BoxModuleFactoryPrx factory, string propertyClassIceId, string[] propertyFunctionsIceIds, Ice.ObjectAdapter adapter, Ice.Identity myIdentity, Modules.PropertyBoxModuleFactoryCreatorI.ValueFromPrx valueFromPrx, PropertyValue defaultValue)
{
this.factory = factory;
this.propertyClassIceId = propertyClassIceId;
this.propertyFunctionsIceIds = propertyFunctionsIceIds;
this.myProxy = BoxModulePrxHelper.uncheckedCast(adapter.add(this,myIdentity));
this.adapter = adapter;
this.valueFromPrx = valueFromPrx;
this.defaultValue = defaultValue;
this.setProperty("value",defaultValue);
}
示例5: PropertyBoxModuleFactoryCreatorI
///<summary>
/// Constructor
/// </summary>
/// <param name="propertyClassIceId">A string</param>
/// <param name="propertyFunctionsIceIds">A string[]</param>
/// <param name="identifier">A string</param>
public PropertyBoxModuleFactoryCreatorI(string propertyClassIceId,
string[] propertyFunctionsIceIds,
string identifier,
PropertyValue defaultValue,
ValueFromPrx valueFromPrx,
PropertyReapThread reaper,
Ice.ObjectAdapter adapter,
string settingModuleIdentifier)
{
this.propertyClassIceId = propertyClassIceId;
this.propertyFunctionsIceIds = propertyFunctionsIceIds;
this.identifier = identifier;
this.valueFromPrx = valueFromPrx;
this.reaper = reaper;
this.defaultValue = defaultValue;
this.myProxy =
PropertyBoxModuleFactoryCreatorPrxHelper.uncheckedCast(adapter.add(this,Ice.Util.stringToIdentity(identifier)));
this.settingModuleIdentifier = settingModuleIdentifier;
}
示例6: activate
// Add servant to ASM and parent's _contents map.
public void activate(Ice.ObjectAdapter a)
{
var thisNode = NodePrxHelper.uncheckedCast(a.add(this, _id));
_parent.addChild(thisNode);
}