/// <summary> /// Creates a communicator. /// </summary> /// <param name="initData">Additional intialization data.</param> /// <returns>The initialized communicator.</returns> public static Communicator initialize(InitializationData initData) { if (initData == null) { initData = new InitializationData(); } else { initData = (InitializationData)initData.Clone(); } Communicator result = new Communicator(initData); string[] args = Array.Empty <string>(); result.finishSetup(ref args); return(result); }
/// <summary> /// Creates a communicator. /// </summary> /// <param name="args">A command-line argument vector. Any Ice-related options /// in this vector are used to initialize the communicator. /// This method modifies the argument vector by removing any Ice-related options.</param> /// <param name="initData">Additional intialization data. Property settings in args /// override property settings in initData.</param> /// <returns>The initialized communicator.</returns> public static Communicator initialize(ref string[] args, InitializationData initData) { if (initData == null) { initData = new InitializationData(); } else { initData = (InitializationData)initData.Clone(); } initData.properties = createProperties(ref args, initData.properties); Communicator result = new Communicator(initData); result.finishSetup(ref args); return(result); }