Esempio n. 1
0
        static void Main(string[] args)
        {
            // The code provided will print ‘Hello World’ to the console.
            // Press Ctrl+F5 (or go to Debug > Start Without Debugging) to run your app.
            Console.WriteLine("Hello World! Welcome to Topic Exchange Request");
            Topicmessages topicmessages = new Topicmessages();

            topicmessages.SendMessage();
            Console.ReadLine();

            // Go to http://aka.ms/dotnet-get-started-console to continue learning how to build a console app!
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            string        opt;
            Topicmessages topicmessages = new Topicmessages();

            do
            {
                Console.WriteLine("Enviar Mensagem?");
                opt = Console.ReadLine();
                if ((opt == "Sim") || (opt == "sim"))
                {
                    topicmessages.SendMessage();
                }
                else
                {
                    Environment.Exit(0);
                }
            } while (true);
        }