public void DeleteSession(int sessionId) { try { _testClient.DeleteSession(sessionId); } catch (CommunicationException) { _testClient = _factory.CreateChannel(); _testClient.DeleteSession(sessionId); } }