/// <summary> /// Start Position Engine Service /// </summary> public bool StartService() { try { if (_isConnected) { if (_asyncClassLogger.IsInfoEnabled) { _asyncClassLogger.Info("Position engine service already running.", _type.FullName, "StartService"); } return(true); } // Start PE-Client _positionEngineClient.Initialize(); if (_asyncClassLogger.IsInfoEnabled) { _asyncClassLogger.Info("Position engine service started.", _type.FullName, "StartService"); } return(true); } catch (Exception exception) { _asyncClassLogger.Error(exception, _type.FullName, "StartService"); return(false); } }
public void AppIDTestCase() { Thread.Sleep(2000); _positionEngineClient.Initialize(OrderExecutionProvider.Simulated); ManualResetEvent manualAppIDEvent = new ManualResetEvent(false);; manualAppIDEvent.WaitOne(3000, false); Assert.NotNull(true, _positionEngineClient.AppId, "App ID"); Assert.AreEqual("A00", _positionEngineClient.AppId, "App ID Value"); }
public static void Main(string[] args) { PositionEngineClient positionEngineClient = new PositionEngineClient(); positionEngineClient.Initialize(OrderExecutionProvider.Simulated); }