/// <summary> /// Adds the specified <b>box module factory</b>. /// </summary> /// <param name="factoryProxy">The proxy of the <b>box module factory</b>.</param> /// <param name="factory">The <b>box module factory</b>.</param> public void Add(BoxModuleFactoryPrx factoryProxy, BoxModuleFactoryI factory) { lock (this) { _factories.Add(new BoxModuleFactoryProxyPair(factoryProxy, factory)); } }
/// <summary> /// Initializes a new instance of the /// <see cref="T:Ferda.Modules.ReapThread.BoxModuleFactoryProxyPair"/> class. /// </summary> /// <param name="factoryProxy">The proxy of the <b>box module factory</b>.</param> /// <param name="factory">The <b>box module factory</b>.</param> public BoxModuleFactoryProxyPair(BoxModuleFactoryPrx factoryProxy, BoxModuleFactoryI factory) { this.factoryProxy = factoryProxy; this.factory = factory; }
/// <summary> /// Creates the box module factory. /// </summary> /// <param name="localePrefs">The localization preferences.</param> /// <param name="manager">The modules manager engine.</param> /// <param name="__current">The Ice.Current.</param> /// <returns> /// The <see cref="Ferda.Modules.BoxModuleFactoryPrx">proxy</see> of the /// <see cref="T:Ferda.Modules.BoxModuleFactoryI">box module factory</see>. /// </returns> /// <seealso cref="T:Ferda.Modules.BoxModuleFactoryI"/> public override BoxModuleFactoryPrx createBoxModuleFactory(string[] localePrefs, Ferda.ModulesManager.ManagersEnginePrx manager, Ice.Current __current) { BoxModuleFactoryCreatorPrx myProxy = BoxModuleFactoryCreatorPrxHelper.uncheckedCast(__current.adapter.addWithUUID(this)); BoxModuleFactoryI boxModuleFactory = new BoxModuleFactoryI(this.boxInfo, myProxy, localePrefs, manager); BoxModuleFactoryPrx boxModuleFactoryPrx = BoxModuleFactoryPrxHelper.uncheckedCast(__current.adapter.addWithUUID(boxModuleFactory)); this.reaper.Add(boxModuleFactoryPrx, boxModuleFactory); return boxModuleFactoryPrx; }