示例#1
0
        /// <summary>
        /// Adds a single conditional parameter to the request. The parameter must exist (default: in the body, as a name=value pair. 
        /// </summary>
        /// <param name="name"></param>
        /// <param name="comparison">Is the value encoded or case sensitive when the name is compared?</param>
        /// <returns></returns>
        public SimulationCondition Parameter(string name, ComparisonType comparison)
        {
            if ((comparison & ComparisonType.NotContains) != 0) throw new System.InvalidOperationException("You must use NotExists instead of NotContains for Parameter checking. ");

            Parameter p = new Parameter(name, comparison);
            SimulationConditionContent.ParametersStorage.Add(p);
            return this;
        }
示例#2
0
 /// <summary>
 /// Adds a single conditional parameter to the request. The parameter must exist (default: in the body, as a name=value pair. 
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public SimulationCondition Parameter(string name)
 {
     Parameter p = new Parameter(name);
     SimulationConditionContent.ParametersStorage.Add(p);
     return this;
 }
示例#3
0
 /// <summary>
 /// Adds a single conditional parameter to the request. The parameter must exist (default: in the body, as a name=value pair. 
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public SimulationCondition Parameter(string name, ComparisonType comparison, ParameterType parameterType)
 {
     Parameter p = new Parameter(name, comparison, parameterType);
     SimulationConditionContent.ParametersStorage.Add(p);
     return this;
 }
示例#4
0
 /// <summary>
 /// Adds a single conditional parameter to the request. The parameter must exist (default: in the body, as a name=value pair. 
 /// </summary>
 /// <param name="name"></param>
 /// <param name="value"></param>
 /// <param name="parameterType"></param>
 /// <returns></returns>
 public SimulationCondition Parameter(string name, string value, ParameterType parameterType)
 {
     Parameter p = new Parameter(name, value) { ParameterType = parameterType };
     SimulationConditionContent.ParametersStorage.Add(p);
     return this;
 }