public void Dispose()
 {
     receiver.StopAsync().Wait();
 }
 public void Dispose()
 {
     sender.CloseAsync().Wait();
     receiver.StopAsync().Wait();
 }