Ejemplo n.º 1
0
        public static void Send()
        {
            for (int i = 0; i < 1000; i++)
            {
                Console.WriteLine("Sending {0} employee", i.ToString());
                Employee employee = new Employee();
                employee.Name = "Employuee " + i.ToString();
                employee.IsActive = i % 2 == 0 ? true : false;

                Thread.Sleep(2000);
                myQueue.Send(employee);
            }
        }
 public MessageEventArgs(Employee employee)
 {
     this.Employee = employee;
 }