コード例 #1
0
        public void run()
        {
            //Pegar os Produtos
            _getProducts.RequestProducts().Wait();

            //Pegar as Areas de Produção
            _getProductions.RequestProductions().Wait();

            //Subscribe to ProductionAreaChanged
            _getProductionAreaChangedService.GetProductionAreaChanged();

            //Subscribe to ProductChanged
            _getProductChangedService.GetProductChanged();

            //Set System Healthy
            _healthCheck.Healthy = true;

            //Publish StoreCatalogReady
            _catalogReadyMessage.SendCatalogReady(_healthCheck.Healthy);
        }