Ejemplo n.º 1
0
        /// <summary>
        /// Upon receipt of the GetParameter action, the DRIT SHALL return the value and the type of the parameter in less
        /// than 1s.
        /// </summary>
        /// <param name="parameter">This argument sets the A_ARG_TYPE_Parameter state variable.</param>
        /// <param name="value">This argument provides the value of the A_ARG_TYPE_Value state variable when the action response is created.</param>
        /// <param name="isVolatile">This argument provides the value of the A_ARG_TYPE_Volatile state variable when the action response is created.</param>
        public void GetParameter(DriDiagParameter parameter, out string value, out bool isVolatile)
        {
            IList <object> outParams = _getParameterAction.InvokeAction(new List <object> {
                parameter.ToString()
            });

            value      = (string)outParams[0];
            isVolatile = (bool)outParams[1];
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            DriDiagParameter diagParam = obj as DriDiagParameter;

            if (diagParam != null && this == diagParam)
            {
                return(true);
            }
            return(false);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Upon receipt of the GetParameter action, the DRIT SHALL return the value and the type of the parameter in less
 /// than 1s.
 /// </summary>
 /// <param name="parameter">This argument sets the A_ARG_TYPE_Parameter state variable.</param>
 /// <param name="value">This argument provides the value of the A_ARG_TYPE_Value state variable when the action response is created.</param>
 /// <param name="isVolatile">This argument provides the value of the A_ARG_TYPE_Volatile state variable when the action response is created.</param>
 public void GetParameter(DriDiagParameter parameter, out string value, out bool isVolatile)
 {
   IList<object> outParams = _getParameterAction.InvokeAction(new List<object> { parameter.ToString() });
   value = (string)outParams[0];
   isVolatile = (bool)outParams[1];
 }