예제 #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            System.Threading.Thread.Sleep(1000);

            // Init queue

            log.Debug("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");

            MessageService MessageTask;

            _messagePool = new MessagePool();
            MessageTask  = new MessageService(_messagePool);
            MessageTask.Start(); // Gen n work trread
        }
예제 #2
0
 public MessageService(MessagePool messagePool)
 {
     this.messagePool = messagePool;
 }
예제 #3
0
 private void MainForm_Leave(object sender, EventArgs e)
 {
     _messagePool = null;
 }
예제 #4
0
 public PersonMessageService(Person p, MessagePool pool)
 {
     _Person      = p;
     _MessagePool = pool;
 }