public void PrepareServerTransport()
 {
     PrepareTransportFactory();
     if (serverTransport != null)
     {
         serverTransport.Destroy();
     }
     serverTransport = transportFactory.Build();
 }
 public void PrepareClientTransport()
 {
     PrepareTransportFactory();
     if (clientTransport != null)
     {
         clientTransport.Destroy();
     }
     clientTransport = transportFactory.Build();
 }