MessageSender.Main C# (CSharp) 메소드

Main() 정적인 개인적인 메소드

static private Main ( ) : void
리턴 void
    internal static void Main()
    {
        string decorationLine = new string('-', Console.WindowWidth);
        Console.Write(decorationLine);
        Console.WriteLine("***Simple chat application (sender)***");
        Console.Write(decorationLine);

        Client client = new Client("520f706527c7200005000001", "JySHBhogfvbKpQ8I5CkUFoY-FnI");

        Queue queue = client.queue("ChatQueue");

        Console.WriteLine("You can start entering messages");

        while (true)
        {
            string message = Console.ReadLine();
            queue.push(message);
            Console.WriteLine("Message sent to IronMQ server.");
        }
    }
}
MessageSender