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 }
public MessageService(MessagePool messagePool) { this.messagePool = messagePool; }
private void MainForm_Leave(object sender, EventArgs e) { _messagePool = null; }
public PersonMessageService(Person p, MessagePool pool) { _Person = p; _MessagePool = pool; }