Beispiel #1
0
        public string SendMessage(string sender, string message)
        {
            var broadcastThread = new Thread(() =>
                {
                    using (var broadcast = new BroadcastService())
                    {
                        broadcast.SendMessageToEveryone(sender, message);
                    }
                }
            );

            broadcastThread.Start();

            return "Mesnsagem Enviada!";
        }
Beispiel #2
0
        public string SendMessage(string sender, string message)
        {
            var broadcastThread = new Thread(() =>
            {
                using (var broadcast = new BroadcastService())
                {
                    broadcast.SendMessageToEveryone(sender, message);
                }
            }
                                             );

            broadcastThread.Start();

            return("Mesnsagem Enviada!");
        }