public static void CheckStatus(string ip)
        {
            LoggerSharedText.LogToServcie("Gate way is checking status for MS ip : " + ip);
            var url    = "";
            var client = new System.Net.WebClient();



            LoggerSharedText.LogToServcie("Request being sent to mirco service 1 A");


            url = "http://" + ip + "/up";
            string temp     = "";
            string response = client.DownloadString(url);

            if (!string.IsNullOrEmpty(response))
            {
                temp = response.ToString();


                if (temp == "ONLINE")
                {
                    if (ip == "13.58.147.235")
                    {
                        LoggerSharedText.service1Online = true;
                        LoggerSharedText.LogToServcie("Result back from  mirco service 1 is : " + temp);
                    }

                    if (ip == "3.12.85.38")
                    {
                        LoggerSharedText.service2Online = true;
                        LoggerSharedText.LogToServcie("Result back from  mirco service 1 is : " + temp);
                    }
                }
                else
                {
                    LoggerSharedText.LogToServcie("Result back from  mirco service 1 is : " + temp);
                    LoggerSharedText.service1Online = false;
                }
            }
            else
            {
                LoggerSharedText.LogToServcie("Result back from  mirco service 1 is OFFLOINE: ");
                LoggerSharedText.service1Online = false;
            }
        }
        public Startup(IConfiguration configuration)
        {
            Configuration = configuration;

            LoggerSharedText.LogToServcie("Gateway Micro Service " + LoggerSharedText.Name + "  status " + LoggerSharedText.Up);
            LoggerSharedText.LogToServcie("Gateway Micro Service " + LoggerSharedText.Name + " is starting ");
            LoggerSharedText.Up = "ONLINE";
            LoggerSharedText.LogToServcie("Gateway Micro Service " + LoggerSharedText.Name + "  status " + LoggerSharedText.Up);

            LoggerSharedText.LogToServcie("Gateway Micro Service Checking MicroService Clluster ");


            LoggerSharedText.CheckStatus("3.12.85.38");

            LoggerSharedText.LogToServcie("Gateway Micro Service Checked Node 1 ");

            LoggerSharedText.CheckStatus("13.58.147.235");

            LoggerSharedText.LogToServcie("Gateway Micro Service Checked Node 2 ");
        }