Exemple #1
0
        public IsAliveResponse Get()
        {
            var matchingEngineAlive = _matchingEngine.PingLock();
            var tradingEngineAlive  = _tradingEngine.PingLock();

            return(new IsAliveResponse
            {
                MatchingEngineAlive = matchingEngineAlive,
                TradingEngineAlive = tradingEngineAlive,
                Version =
                    Microsoft.Extensions.PlatformAbstractions.PlatformServices.Default.Application.ApplicationVersion,
                Env = _settings.IsLive ? "Live" : "Demo",
                ServerTime = _dateService.Now()
            });
        }