public int AddAdditionalTime(short minutes, DateTime startTime, DateTime endTime, int groupId, int testId, int studentId) { try { return(_testClient.AddAdditionalTime(minutes, startTime, endTime, groupId, testId, studentId)); } catch (CommunicationException) { _testClient = _factory.CreateChannel(); return(_testClient.AddAdditionalTime(minutes, startTime, endTime, groupId, testId, studentId)); } }