private void Button1_Click(object sender, EventArgs e) { new Task(() => { var p = new RabbitMQ1(); p.Receive(); }).Start(); //new Task(() => //{ // var p = new Class1(); // p.Get(); //}).Start(); //new Task(() => //{ // var p = new Class1(); // p.Get(); //}).Start(); }
private void Button1_Click(object sender, EventArgs e) { var p = new RabbitMQ1(); p.Send(); }