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(); }
public void Cleanup() { transport.StopAsync(); transport = null; }