public async void Cleanup()
 {
     if (connections != null)
     {
         for (int connectionIndex = 0; connectionIndex < connections.Length; connectionIndex++)
         {
             await connections[connectionIndex].StopAsync();
             Assert.IsFalse(connections[connectionIndex].IsConnected);
             Assert.IsFalse(connections[connectionIndex].IsPaired);
         }
     }
     connections = null;
     await transport.StopAsync();
 }
Example #2
0
 public void Cleanup()
 {
     transport.StopAsync();
     transport = null;
 }