AcUtils
A high performance abstraction layer for AccuRev
Public Member Functions | List of all members
AcUtils.ICmdValidate Interface Reference

Implement to change the default logic used to determine if an AcUtilsException should be thrown based on the command's AccuRev program return value and the version of AccuRev in use. More...

Public Member Functions

bool isValid (string command, int retval)
 Defines the logic used to determine if an AcUtilsException should be thrown based on the AccuRev program retval for command. More...
 

Detailed Description

Implement to change the default logic used to determine if an AcUtilsException should be thrown based on the command's AccuRev program return value and the version of AccuRev in use.

Definition at line 80 of file AcCommand.cs.

Member Function Documentation

bool AcUtils.ICmdValidate.isValid ( string  command,
int  retval 
)

Defines the logic used to determine if an AcUtilsException should be thrown based on the AccuRev program retval for command.

Parameters
commandThe command that was issued.
retvalThe AccuRev program return value for command.
Returns
true if command should succeed, otherwise false to have an AcUtilsException thrown.

Implemented in AcUtils.CmdValidate.

Referenced by AcUtils.AcCommand.run(), and AcUtils.AcCommand.runAsync().