public void ServerTerminate() { try { // Nothing to do here _client.Shutdown(); _client = null; _log.Info("Stopping AIM RTD server"); } catch (Exception e) { _log.Error("ServerTerminate:", e); } }
/// <summary> /// Called when loaded by Excel. Connect to the NMS Broker. /// </summary> /// <param name="callbackObject"></param> /// <returns></returns> public int ServerStart(IRTDUpdateEvent callbackObject) { try { _mXlRtdUpdate = callbackObject; _log.Info("Starting AIM RTD server"); Client = new NmsClient(callbackObject, new[] { "account", "securityId", "level1TagName" }, _config.PositionsBrokerUrl); // The level2-4 tags do not add anything to uniqueness // , "level2TagName", "level3TagName", "level4TagName" return(1); } catch (Exception e) { _log.Error("Caught exception during server start", e); } return(-1); }