/// <summary> /// Make the connection to the Instrument Control XML-RPC server. /// </summary> public void Subscribe() { try { if (myXmlRpcProxy != null) { // Register for Instrument Control Events myXmlRpcProxy.Subscribe(RemotingInfo.GetInstance().IcsEventSinkURL); } } catch (Exception ex) { LogFile.LogException(TraceLevel.Error, ex); //DisableConnection(); throw new ApplicationException( SeparatorResourceManager.GetSeparatorString( StringId.ExFailedToSubscribeToInstrumentControl), ex); } }