public AgentMessage(ESwarmVersionValue NewVersion,EMessageType NewType) { To = Constants.INVALID; From = Constants.INVALID; Version = NewVersion; Type = NewType; }
public Int32 GetMessage(Int32 ConnectionHandle, Hashtable InParameters, ref Hashtable OutParameters) { // Initialize the output parameters OutParameters = null; // Validate the input parameters if (InParameters.ContainsKey("Version")) { ESwarmVersionValue InParametersVersion = ( ESwarmVersionValue )InParameters["Version"]; switch (InParametersVersion) { case ESwarmVersionValue.VER_1_0: if (InParameters.ContainsKey("Timeout")) { return(GetMessage_1_0(ConnectionHandle, InParameters, ref OutParameters)); } break; } } return(Constants.ERROR_INVALID_ARG); }
public Int32 BeginJobSpecification(Int32 ConnectionHandle, Hashtable InParameters, ref Hashtable OutParameters) { // Initialize the output parameters OutParameters = null; // Validate the input parameters if (InParameters.ContainsKey("Version")) { ESwarmVersionValue InParametersVersion = ( ESwarmVersionValue )InParameters["Version"]; switch (InParametersVersion) { case ESwarmVersionValue.VER_1_0: if (InParameters.ContainsKey("Specification32") && InParameters.ContainsKey("Specification64")) { return(BeginJobSpecification_1_0(ConnectionHandle, InParameters, ref OutParameters)); } break; } } return(Constants.ERROR_INVALID_ARG); }
public Int32 OpenConnection(Hashtable InParameters, ref Hashtable OutParameters) { // Initialize the output parameters OutParameters = null; // Validate the input parameters if ((InParameters != null) && (InParameters.ContainsKey("Version"))) { ESwarmVersionValue InParametersVersion = ( ESwarmVersionValue )InParameters["Version"]; switch (InParametersVersion) { case ESwarmVersionValue.VER_1_0: if (InParameters.ContainsKey("ProcessID") && InParameters.ContainsKey("LoggingFlags")) { return(OpenConnection_1_0(InParameters, ref OutParameters)); } break; } } return(Constants.ERROR_INVALID_ARG); }
/** * Constructor, initializes to specified values * * @param NewVersion The version of the message format; one of ESwarmVersionValue * @param NewType The type of the message, one of EMessageType */ public FMessage(ESwarmVersionValue NewVersion, EMessageType NewType) { Version = NewVersion; Type = NewType; }