当前位置: 首页>>代码示例>>C#>>正文


C# Ice.add方法代码示例

本文整理汇总了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();
 }
开发者ID:joshmoore,项目名称:ice,代码行数:7,代码来源:RemoteObjectAdapterI.cs

示例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);
     }
 }
开发者ID:bholl,项目名称:zeroc-ice,代码行数:9,代码来源:DirectoryI.cs

示例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")));
 }
开发者ID:pedia,项目名称:zeroc-ice,代码行数:8,代码来源:TestI.cs

示例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);
 }
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:18,代码来源:PropertyBoxModuleI.cs

示例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;
 }
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:25,代码来源:PropertyBoxModuleFactoryCreatorI.cs

示例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);
 }
开发者ID:zhangwei5095,项目名称:zeroc-ice-demos,代码行数:6,代码来源:FileI.cs


注:本文中的Ice.add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。