コード例 #1
0
ファイル: ActiveMQRtdServer.cs プロジェクト: TzarIvan/ratel
        /// <summary>
        /// Called when the RTD server is loaded.
        ///
        /// </summary>
        /// <param name="callbackHandler">handle to Excel that we use to notify Excel of
        /// topic value updates</param>
        /// <returns>1 if we started OK, -1 if we cannot start</returns>
        public int ServerStart(IRTDUpdateEvent callbackHandler)
        {
            _log.Info("Starting RTD server Subscriber");
            // Setup our internal state as we have just been loaded by Excel
            _xlRtdUpdateCallbackHandler = callbackHandler;

            // Load when we are running inside of Excel
            if (_config == null)
            {
                _config = AppConfiguration.Load();
            }
            return(1);
        }
コード例 #2
0
ファイル: ActiveMQPublisher.cs プロジェクト: TzarIvan/ratel
 public ActiveMQPublisher() : this(AppConfiguration.Load())
 {
 }
コード例 #3
0
ファイル: ActiveMQRtdServer.cs プロジェクト: TzarIvan/ratel
 public ActiveMQRtdServer() : this(AppConfiguration.Load())
 {
 }
コード例 #4
0
 public NmsRtdClient()
 {
     _config = AppConfiguration.Load();
 }