/// <summary> /// 取个人基本信息 /// </summary> /// <param name="ylzh">医疗证号(解析前)</param> /// <param name="mm">医疗证号密码</param> /// <param name="theGRXX">个人基本信息</param> /// <param name="errMsg">异常信息</param> /// <returns></returns> public bool GetGRXBXX(string ylzh, string mm, out GRXX theGRXX, out string errMsg) { System.Collections.IDictionary dic = new System.Collections.Hashtable(); //dic.Add(IiopClientChannel.ALLOW_REQUEST_MULTIPLEX_KEY,"9"); //dic.Add(IiopClientChannel.CLIENT_CONNECTION_LIMIT_KEY,30000); //dic.Add(IiopClientChannel.CLIENT_RECEIVE_TIMEOUT_KEY, 30000); //dic.Add(IiopClientChannel.CLIENT_REQUEST_TIMEOUT_KEY, 30000); //dic.Add(IiopClientChannel.CLIENT_SEND_TIMEOUT_KEY, 30000); //dic.Add(IiopClientChannel.CLIENT_UNUSED_CONNECTION_KEEPALIVE_KEY, "3"); //dic.Add(IiopClientChannel.MAX_NUMBER_OF_MULTIPLEXED_REQUESTS_KEY, "3"); //dic.Add(IiopClientChannel.MAX_NUMBER_OF_RETRIES_KEY, "3"); //dic.Add(IiopClientChannel.RETRY_DELAY_KEY,30000); dic.Add(IiopClientChannel.CLIENT_RECEIVE_TIMEOUT_KEY, 30000); //30s dic.Add(IiopClientChannel.CLIENT_REQUEST_TIMEOUT_KEY, 30000); //30s dic.Add(IiopClientChannel.CLIENT_SEND_TIMEOUT_KEY, 30000); //30s IiopClientChannel channel = new IiopClientChannel(dic); try { if (string.IsNullOrEmpty(mm)) { mm = ""; } ChannelServices.RegisterChannel(channel, false); NamingContext nameService = (NamingContext)RemotingServices.Connect(typeof(NamingContext), strior); NameComponent[] name = new NameComponent[] { new NameComponent("MZYL", "Service") }; intMZ mz = (intMZ)nameService.resolve(name); short[] res = mz.GetGRJBXX(yljgbm, ylzh, mm, czybm, czy, out theGRXX); ChannelServices.UnregisterChannel(channel); string resStr = TransSAToString(res); if (resStr.StartsWith(SUCCESS)) { ////DataLog.SaveLog("获取患者医保个人信息成功"); errMsg = string.Empty; return(true); } else { if (isSaveExceptionLog) { ////DataLog.SaveLog(String.Format("GetGRXBXX:{0}\n", resStr)); } errMsg = resStr.Substring(resStr.IndexOf(")") + 1); return(false); } } catch (Exception ex) { ChannelServices.UnregisterChannel(channel); if (isSaveExceptionLog) { ////DataLog.SaveLog(String.Format("GetGRXBXX:{0}\n", ex.Message)); } errMsg = EXCEPTION; theGRXX = new GRXX(); return(false); } }
/// <summary> /// 取门诊单据费用明细(退费前用) /// </summary> /// <param name="mzlsh">门诊流水号</param> /// <param name="djh"></param> /// <param name="theMZFY"></param> /// <param name="errMsg"></param> /// <returns></returns> public bool GetMZFYMX(string mzlsh, string djh, out MZFYDetail[] theMZFY, out string errMsg) { IiopClientChannel channel = new IiopClientChannel(); try { NamingContext nameService = (NamingContext)RemotingServices.Connect(typeof(NamingContext), strior); NameComponent[] name = new NameComponent[] { new NameComponent("MZYL", "Service") }; intMZ mz = (intMZ)nameService.resolve(name); short[] res = mz.GetMZFYMX(yljgbm, mzlsh, djh, czybm, czy, out theMZFY); ChannelServices.UnregisterChannel(channel); string resStr = TransSAToString(res); if (resStr.StartsWith(SUCCESS)) { errMsg = string.Empty; return(true); } else { errMsg = resStr.Substring(resStr.IndexOf(")") + 1); return(false); } } catch (Exception ex) { ChannelServices.UnregisterChannel(channel); if (isSaveExceptionLog) { //DataLog.SaveLog(String.Format("GetMZFYMX:{0}\n", ex.Message)); } errMsg = EXCEPTION; theMZFY = null; return(false); } }
public static void Main(string[] args) { try { string nameserviceLoc = "corbaloc::localhost:3528/JBoss/Naming/root"; if (args.Length > 0) { nameserviceLoc = args[0]; } IiopClientChannel channel = new IiopClientChannel(); ChannelServices.RegisterChannel(channel, false); NamingContext nameService = (NamingContext)RemotingServices.Connect(typeof(NamingContext), nameserviceLoc); NameComponent[] name = new NameComponent[] { new NameComponent("demo", ""), new NameComponent("commandTargetHome", "") }; // get the command target home interface CommandTargetHome home = (CommandTargetHome)nameService.resolve(name); CommandTarget commandTarget = home.create(); Application.Run(new Commandform(commandTarget)); } catch (Exception e) { Console.WriteLine("exception: " + e); } }
public static void Main(string[] args) { try { string nameserviceLoc = "corbaloc::localhost:3528/JBoss/Naming/root"; // the port the callback is listening on int callbackPort = 0; // auto assign if (args.Length > 0) { nameserviceLoc = args[0]; } if (args.Length > 1) { callbackPort = Int32.Parse(args[1]); } IiopChannel channel = new IiopChannel(callbackPort); ChannelServices.RegisterChannel(channel, false); NamingContext nameService = (NamingContext)RemotingServices.Connect(typeof(NamingContext), nameserviceLoc); NameComponent[] name = new NameComponent[] { new NameComponent("demo", ""), new NameComponent("chatroomHome", "") }; // get the chatroom home interface ChatroomHome home = (ChatroomHome)nameService.resolve(name); Chatroom chatroom = home.create(); Application.Run(new Chatform(chatroom)); } catch (Exception e) { Console.WriteLine("exception: " + e); } }
public static void Main(string[] args) { try { string nameServiceHost = "localhost"; int nameServicePort = 1050; parseArgs(ref nameServiceHost, ref nameServicePort, args); Console.WriteLine("input the two summands"); Console.WriteLine("sum1:"); double sum1 = Double.Parse(Console.ReadLine()); Console.WriteLine("sum2:"); double sum2 = Double.Parse(Console.ReadLine()); // register the channel IiopClientChannel channel = new IiopClientChannel(); ChannelServices.RegisterChannel(channel, false); // access COS nameing service CorbaInit init = CorbaInit.GetInit(); NamingContext nameService = init.GetNameService(nameServiceHost, nameServicePort); NameComponent[] name = new NameComponent[] { new NameComponent("adder", "") }; // get the reference to the adder Adder adder = (Adder)nameService.resolve(name); // call add double result = adder.add(sum1, sum2); Console.WriteLine("result: " + result); } catch (Exception e) { Console.WriteLine("exception: " + e); } }
public static void Main(string[] args) { try { string nameServiceHost = "localhost"; int nameServicePort = 1050; parseArgs(ref nameServiceHost, ref nameServicePort, args); // register the channel IiopClientChannel channel = new IiopClientChannel(); ChannelServices.RegisterChannel(channel, false); // access COS naming service CorbaInit init = CorbaInit.GetInit(); NamingContext nameService = init.GetNameService(nameServiceHost, nameServicePort); NameComponent[] name = new NameComponent[] { new NameComponent("service", "") }; // get the reference to the adder Service service = (Service)nameService.resolve(name); // call fail service.fail(); } catch (CustomEx je) { Console.WriteLine("Java-side exception: {0}\nReason: {1}", je.value.message, je.value.reason); } catch (Exception e) { Console.WriteLine("exception: " + e); } }
/// <summary> /// Creates a player from a given user object - this is an entity ready to be sent into a simulation game. /// </summary> /// <param name="user"></param> /// <returns></returns> public static Entity CreatePlayer(User user, Vector2 location) { var entity = new Entity(); var transformComponent = new TransformComponent(location, new Vector2(50, 70)); var nameComponent = new NameComponent(user.Name); var skinComponent = new SkinComponent(user.SessionConfig.Skin); var playerComponent = new PlayerComponent(); var bombModifier = new BombCountModifierComponent(); var rangeModifier = new RangeModifierComponent(); var movementModifier = new MovementModifierComponent(); // Add modifier components to the sprite playerComponent.Connection = user.Connection; playerComponent.SecureToken = user.SecureToken; entity.AddComponent(transformComponent); entity.AddComponent(nameComponent); entity.AddComponent(skinComponent); entity.AddComponent(playerComponent); entity.AddComponent(bombModifier); entity.AddComponent(rangeModifier); entity.AddComponent(movementModifier); return(entity); }
public static void Main(string[] args) { if (args.Length != 1) { Console.WriteLine("Please specify the nameservice url either as ior or corbaloc"); } string nameServiceUrl = args[0]; // register the channel int port = 8087; IiopChannel chan = new IiopChannel(port); ChannelServices.RegisterChannel(chan, false); AdderImpl adder = new AdderImpl(); string objectURI = "adder"; RemotingServices.Marshal(adder, objectURI); // publish the adder with an external name service NamingContext nameService = (NamingContext)RemotingServices.Connect(typeof(NamingContext), nameServiceUrl); NameComponent[] name = new NameComponent[] { new NameComponent("adder") }; nameService.bind(name, adder); Console.WriteLine("server running"); Console.ReadLine(); // unpublish with external name service nameService.unbind(name); }
public override void Update() { NameComponent name = Container.GetComponent <NameComponent>(); SpatialComponent spatial = Container.GetComponent <SpatialComponent>(); Console.WriteLine(name.EntityName + " is at: (" + spatial.X + ", " + spatial.Y + ")"); }
private void addCounter(NameComponent component) { CounterComponent com = (CounterComponent)component; Canvas canvas = createNameComponent(componentList.getList().IndexOf(com)); Label startLabel = new Label(); Label stepLabel = new Label(); TextBox startBox = new TextBox(); TextBox stepBox = new TextBox(); AddComponentsToCanvas(canvas, startBox, startLabel); AddComponentsToCanvas(canvas, stepBox, stepLabel); startBox.PreviewTextInput += handleNonNurmeric; stepBox.PreviewTextInput += handleNonNurmeric; startBox.TextChanged += StartNumberChanged; stepBox.TextChanged += StepNumberChanged; startBox.Width = 100; stepBox.Width = 70; startLabel.Content = "Start at: "; stepLabel.Content = "With step size: "; Canvas.SetLeft(startLabel, 5); Canvas.SetLeft(startBox, 100); Canvas.SetLeft(stepLabel, 220); Canvas.SetLeft(stepBox, 340); nameCanvas.Children.Add(canvas); initialiseTextBox(startBox, com.StartNumber.ToString()); initialiseTextBox(stepBox, com.Step.ToString()); EnlargeCanvas(nameCanvas, 40); }
public CargoHostEndPoint(string ipAdr, int ipPort) { IPAddress = ipAdr; /*ensure value*/ IPPort = ipPort; /*ensure value*/ _iiopChannel = new IiopChannel(0); _ncHost = new NameComponent[] { new NameComponent("cargo", "context"), new NameComponent("host", "object") }; _ncXi = new NameComponent[] { new NameComponent("cargo", "context"), new NameComponent("xi", "object") }; }
private RtecEventChannelAdmin.EventChannel ResolveEventChannel(NamingContext nameService) { NameComponent[] name = new NameComponent[] { new NameComponent("EventService", "") }; //Downcast the object reference to an EventChannel reference RtecEventChannelAdmin.EventChannel ec = (RtecEventChannelAdmin.EventChannel)nameService.resolve(name); return(ec); }
private void RetrieveChatRoom(string nameServiceHost, int nameServicePort) { CorbaInit init = CorbaInit.GetInit(); NamingContext nameService = (NamingContext)init.GetNameService(nameServiceHost, nameServicePort); NameComponent[] name = new NameComponent[] { new NameComponent("chatroom", "") }; // get the chatroom m_chatroom = (IChatroom)nameService.resolve(name); }
public void Before() { _context = Helper.CreateContext(); _index = new PrimaryEntityIndex<string>(_context.GetGroup(Matcher.AllOf(CP.ComponentA)), (e, c) => ((NameComponent)c).name); for (int i = 0; i < 10; i++) { var nameComponent = new NameComponent(); nameComponent.name = i.ToString(); _context.CreateEntity().AddComponent(CP.ComponentA, nameComponent); } }
public void SetupEnvironment() { // register the channel m_channel = new IiopClientChannel(); ChannelServices.RegisterChannel(m_channel, false); NamingContext nameService = GetNameService(); NameComponent[] name = new NameComponent[] { new NameComponent("test", "") }; // get the reference to the test-service m_testService = (TestService)nameService.resolve(name); }
public void Before() { _context = Helper.CreateContext(); _index = new PrimaryEntityIndex <Entity, string>(_context.GetGroup(Matcher <Entity> .AllOf(CP.ComponentA)), (e, c) => ((NameComponent)c).name); for (int i = 0; i < 10; i++) { var nameComponent = new NameComponent(); nameComponent.name = i.ToString(); _context.CreateEntity().AddComponent(CP.ComponentA, nameComponent); } }
/// <summary> /// creates a name, which should be passed to resolve method on naming context, /// for the given jndi name /// </summary> public static NameComponent[] CreateNameForJNDI(string jndiName) { if (jndiName == null) { throw new ArgumentException("jndi name must be != null"); } string[] nameParts = jndiName.Split('.'); NameComponent[] result = new NameComponent[nameParts.Length]; for (int i = 0; i < nameParts.Length; i++) { result[i] = new NameComponent(nameParts[i]); } return(result); }
public void TestSendRefOfAProxy() { NameComponent[] name = new NameComponent[] { new NameComponent("IntegrationTest", ""), new NameComponent("intadder", "") }; // get the reference to the intadder-home IntAdderHome adderhome = (IntAdderHome)m_nameService.resolve(name); Assertion.AssertNotNull("int adder bean home not found!", adderhome); IntAdder adder = adderhome.create(); System.Int32 arg1 = 1; System.Int32 arg2 = 2; System.Int32 result = m_test.AddWithAdder(adder, arg1, arg2); Assertion.AssertEquals((System.Int32)arg1 + arg2, result); }
public void SetupEnvironment() { // register the channel m_channel = new IiopClientChannel(); ChannelServices.RegisterChannel(m_channel, false); // access COS nameing service NamingContext nameService = (NamingContext)RemotingServices.Connect(typeof(NamingContext), "corbaloc::localhost:11456/NameService"); NameComponent[] name = new NameComponent[] { new NameComponent("test", "") }; // get the reference to the test-service m_testService = (TestService)nameService.resolve(name); }
public static void Main(string[] args) { var health = new HealthComponent { value = 10 }; var name = new NameComponent { value = "John" }; Console.WriteLine($"{name.value} has {health.value} health."); Console.WriteLine($"HealthComponent is at index {GetIndexForType(health)}"); Console.WriteLine($"The component type at index 1 is {GetTypeFromIndex(1).Name}"); }
public static void Main(string[] args) { try { // register the channel IiopClientChannel channel = new IiopClientChannel(); ChannelServices.RegisterChannel(channel); Object obj = new Object(); try { // access COS naming Service NamingContext nameService = (NamingContext)RemotingServices.Connect(typeof(NamingContext), "corbaloc::localhost:2809/NameService"); Console.WriteLine("Got reference to nameService"); // get the reference to the Graph NameComponent[] name = new NameComponent[] { new NameComponent("Foo", "Test") }; Console.WriteLine("About to resolve Foo.Test"); obj = (DataFlowGraph)nameService.resolve(name); Console.WriteLine("Got reference to graph"); } catch (NotFound e) { Console.WriteLine("Could not find graph in NameService"); return; } catch (TRANSIENT e) { Console.WriteLine("Could not contact NameService"); return; } if (obj == null) { Console.WriteLine("Reference to graph is null..."); return; } DataFlowGraph graph = (DataFlowGraph)obj; KeyValuePair[] sink_attributes = new KeyValuePair[] { new KeyValuePair("name", "CORBA.Sink01") }; Console.WriteLine("About to create node"); Node sink = (Node)graph.create_node("CORBASink", sink_attributes); Console.WriteLine("Created CORBA sink node"); Node[] nodes = graph.get_nodes(); foreach (Node n in nodes) { Console.WriteLine(n.get_attribute("ID")); } } catch (NotFound e) { Console.WriteLine("Could not find graph in NameService"); } catch (TRANSIENT e) { Console.WriteLine("Could not contact graph"); } catch (Exception e) { Console.WriteLine("exception: " + e); } }
public void ShouldInitRendering() { // given ComponentState expectedState = ComponentState.Loading; // when var initialNameComponent = new NameComponent(); // then initialNameComponent.State.Should().BeEquivalentTo(expectedState); initialNameComponent.TextBox.Should().BeNull(); initialNameComponent.StudentName.Should().BeNull(); initialNameComponent.Exception.Should().BeNull(); }
public void SetupEnvironment() { // register the channel m_channel = new IiopClientChannel(); ChannelServices.RegisterChannel(m_channel, false); // access COS nameing service RmiIiopInit init = new RmiIiopInit("localhost", 7001); m_nameService = init.GetNameService(); NameComponent[] name = new NameComponent[] { new NameComponent("IntegrationTest", ""), new NameComponent("test", "") }; // get the reference to the test-home TestHome testhome = (TestHome)m_nameService.resolve(name); m_test = testhome.create(); }
/// <summary> /// Get the Uniform Resource Locator (URL) for querying the KdeJsme web site /// in regards to a specified name /// </summary> /// <param name="sName">the name to query</param> /// <param name="eGivenOrSurname">which component of a full name <paramref name="sName"/> corresponds to</param> /// <returns></returns> public static string GetUrl(String sName, NameComponent eGivenOrSurname) { string sDatabase; switch ( eGivenOrSurname ) { case NameComponent.GivenName: sDatabase = "jmeno"; break ; case NameComponent.Surname: sDatabase = "prijmeni"; break; default: throw new ArgumentException( "Cannot construct a Kde Jsme web query for a name unless we know if it's a given name or a surname" ); } return "http://www.kdejsme.cz/" + sDatabase + "/" + WebChar.ToUrlEncoding(sName) + "/hustota/"; }
public static void Main(string[] args) { try { string nameServiceHost = "localhost"; int nameServicePort = 1050; parseArgs(ref nameServiceHost, ref nameServicePort, args); // register the channel IiopClientChannel channel = new IiopClientChannel(); ChannelServices.RegisterChannel(channel, false); // access COS nameing service RmiIiopInit init = new RmiIiopInit(nameServiceHost, nameServicePort); NamingContext nameService = init.GetNameService(); // test value object: Console.WriteLine("testing value object"); NameComponent[] name = new NameComponent[] { new NameComponent("ch.elca.iiop.demo.valueObjectDemo.ValueObjDemoHome", "") }; // get the reference to the ValObjectDemo-home ValObjectDemoHome valDemoHome = (ValObjectDemoHome)nameService.resolve(name); // create valObjectDemo ValObjectDemo valDemo = valDemoHome.create(); // call retrieveValObject Console.WriteLine("calling retrieveValObject"); ValObject resultVal = valDemo.retrieveValObject(); Console.WriteLine("test-string: " + resultVal.testString); Console.WriteLine("test-int: " + resultVal.testValue); // call echoValObject Console.WriteLine("calling echoValObject"); ValObject toSend = new ValObjectImpl(); Console.WriteLine("input string: "); toSend.testString = Console.ReadLine(); Console.WriteLine("input int: "); toSend.testValue = Int32.Parse(Console.ReadLine()); Console.WriteLine("result of echo: "); ValObject echo = valDemo.echoValObject(toSend); Console.WriteLine("echo-string: " + echo.testString); Console.WriteLine("echo-value: " + echo.testValue); // Dispose the EJB valDemo.remove(); } catch (Exception e) { Console.WriteLine("exception: " + e); } }
public void SetupEnvironment() { SetupSslChannel(); // access COS nameing service string nameserviceLoc = "corbaloc:iiop-ssl:localhost:3529/JBoss/Naming/root"; m_nameService = (NamingContext)RemotingServices.Connect(typeof(NamingContext), nameserviceLoc); NameComponent[] name = new NameComponent[] { new NameComponent("IntegrationTest", ""), new NameComponent("test", "") }; // get the reference to the test-home TestHome testhome = (TestHome)m_nameService.resolve(name); m_test = testhome.create(); }
private void addString(NameComponent component) { StringComponent com = (StringComponent)component; Canvas canvas = createNameComponent(componentList.getList().IndexOf(com)); TextBox textBox = new TextBox(); Label label = new Label(); AddComponentsToCanvas(canvas, textBox, label); label.Content = "String:"; textBox.TextChanged += StringTextChanged; textBox.Width = 300; Canvas.SetLeft(label, 5); Canvas.SetLeft(textBox, 100); nameCanvas.Children.Add(canvas); initialiseTextBox(textBox, com.Content); EnlargeCanvas(nameCanvas, 40); }
public void SetupEnvironment() { // register the channel m_channel = new IiopClientChannel(); ChannelServices.RegisterChannel(m_channel, false); // access COS nameing service string nameserviceLoc = "corbaloc::localhost:3528/JBoss/Naming/root"; m_nameService = (NamingContext)RemotingServices.Connect(typeof(NamingContext), nameserviceLoc); NameComponent[] name = new NameComponent[] { new NameComponent("IntegrationTest", ""), new NameComponent("test", "") }; // get the reference to the test-home TestHome testhome = (TestHome)m_nameService.resolve(name); m_test = testhome.create(); }
public static int CreateChopper(GraphicsDevice gd, string modelPath) { ComponentManager cm = ComponentManager.GetInstance(); ModelComponent modComp = new ModelComponent(modelPath) { IsActive = true }; TransformComponent transComp = new TransformComponent() { Position = new Vector3(20, 350, -170) }; NameComponent nameComp = new NameComponent("Chopper"); int chop = cm.AddEntityWithComponents(modComp, transComp, nameComp); return(chop); }
protected override List <GameObject> GetInventory(SimDescription sim) { List <GameObject> results = new List <GameObject>(); foreach (GameObject obj in Inventories.InventoryFindAll <GameObject>(sim)) { if (obj.Value == 0) { continue; } if (obj is Vehicle) { CarOwnable ownable = obj as CarOwnable; if (ownable != null) { if (ownable.GeneratedOwnableForNpc) { continue; } if (ownable is CarMotiveMobile) { continue; } if (ownable is SirenEnabledVehicle) { continue; } } NameComponent name = obj.GetComponent <NameComponent>(); if ((name == null) || (string.IsNullOrEmpty(name.Name))) { results.Add(obj); } } } return(results); }
public static int CreateCube(GraphicsDevice gd, string path, Vector3 position, Vector3 corner1, Vector3 corner2, Vector3 scale, int?parent, string name) { NameComponent nameComp = new NameComponent(name); RectangleComponent cubekid = new RectangleComponent(gd, false, corner1, corner2, path); cubekid.Parent = parent; TransformComponent trans = new TransformComponent() { Position = position }; if (!parent.HasValue) { trans.Scale = scale; } int cube = cm.AddEntityWithComponents(cubekid, trans, nameComp); return(cube); }
static void Main(string[] args) { IiopClientChannel channel = new IiopClientChannel(); ChannelServices.RegisterChannel(channel, false); CorbaInit init = CorbaInit.GetInit(); NamingContext context = init.GetNameService("MYLICSRV", 30000); NameComponent[] names = new NameComponent[] { new NameComponent("B1LicenseInfo") }; ILicenseInfo li = (ILicenseInfo)context.resolve(names); byte[] hwKey; byte[] instNum; li.GetHardwareKey(out hwKey); li.GetInstallationNumberList(out instNum); Encoding encoding = new System.Text.UnicodeEncoding(false, false, true); Console.WriteLine(encoding.GetString(hwKey)); Console.WriteLine(encoding.GetString(instNum)); }
/// <summary> /// Search the Kde Jsme database for a surname or given name /// </summary> /// <param name="sName">Name to search for (in UTF8)</param> /// <param name="eGivenOrSurname">Whether <see cref="sName"/> is a given name or a surname</param> /// <param name="browser"><see cref="WebBrowser"/> control to display results in</param> public KdeJsmeWebQuery(String sName, NameComponent eGivenOrSurname, WebBrowser browser) : base(browser, QueryMethod.Get) { Count = 0; _Url = GetUrl(sName, eGivenOrSurname); }
public NotFound(NotFoundReason why, NameComponent[] restOfName) { this.why = why; this.rest_of_name = restOfName; }
protected NameComponent[] GetNameComponent(System.Object obj, string objectName) { NameComponent[] nc = new NameComponent[] { new NameComponent("cargo", "context"), new NameComponent(objectName, "object") }; try { if (obj.GetType().FullName.Equals("XI_Impl")) { m_NameService.bind(nc, (XI_Impl)obj); } } catch (AbstractCORBASystemException ex) { MessageBox.Show("Unable to find XI Object\n" + ex.Message); return null; } catch (System.Exception e) { string str = e.Message; try { if (obj.GetType().FullName.Equals("XI_Impl")) { m_NameService.rebind(nc, (XI_Impl)obj); } } catch (System.Exception e1) { MessageBox.Show("Rebinding XI Failed\n" + e1.Message); } } return nc; }