public void UnAuthsend(int p_thread_id, DialogMessageForClient p_message)
        {
            if (!is_there_unauth_worker_thread(p_thread_id))
            {
                return;
            }
            FinalMessageForClient message_for_user   = new FinalMessageForClient(TypeOfMessage.Dialog, p_message);
            MessageToDistributer  distributer_object = new MessageToDistributer(p_thread_id, new MessageToServerWorker(TypeOfMessageToServerWorker.FinalMessageToClient, message_for_user), TypeOfMessageToDistributer.MessageToServerWorker);

            lock (distributer_pulse_object)
            {
                send_to_distributer_construct.send_to_distributer_queue.Enqueue(distributer_object);
                send_to_distributer_construct.send_to_distribuer_queue_flag = true;
                Monitor.Pulse(distributer_pulse_object);
            }
        }
        public void AuthSend(string p_user_name, DialogMessageForClient p_message)
        {
            int thread_id = get_online_user_thread_id(p_user_name);

            if (thread_id == 0)
            {
                return;
            }
            FinalMessageForClient message_for_user   = new FinalMessageForClient(TypeOfMessage.Dialog, p_message);
            MessageToDistributer  distributer_object = new MessageToDistributer(thread_id, new MessageToServerWorker(TypeOfMessageToServerWorker.FinalMessageToClient
                                                                                                                     , message_for_user), TypeOfMessageToDistributer.MessageToServerWorker);

            lock (distributer_pulse_object)
            {
                send_to_distributer_construct.send_to_distributer_queue.Enqueue(distributer_object);
                send_to_distributer_construct.send_to_distribuer_queue_flag = true;
                Monitor.Pulse(distributer_pulse_object);
            }
        }
 public void SC_UnAuthSend(int p_thread_id, DialogMessageForClient p_message)
 {
     send_data.UnAuthsend(p_thread_id, p_message);
 }
 public void SC_AuthSend(string p_user_name, DialogMessageForClient p_message)
 {
     send_data.AuthSend(p_user_name, p_message);
 }