Exemplo n.º 1
0
        public IIhiSearchValidateOutcome SearchOrValidateIhi(IIhiRequestData IhiRequestData)
        {
            IhiSearchValidateOutcome = new IhiSearchValidateOutcome(IhiRequestData);

            //Hash the config so that we don't validate it is unchanged.
            int ConfigHashTemp = IhiSearchValidateConfig.GetHashCode();

            if (ConfigHashTemp != ConfigHash)
            {
                if (!IsConfigrationDataValid())
                {
                    return(IhiSearchValidateOutcome);
                }
                else
                {
                    ConfigHash = ConfigHashTemp;
                }
            }

            if (!IsRequestDataValid())
            {
                return(IhiSearchValidateOutcome);
            }

            IhiSeachOrValidateQuery();
            return(IhiSearchValidateOutcome);
        }
 public IhiSearchValidateOutcome(IIhiRequestData RequestDemographics)
 {
     this.SuccessfulQuery = false;
     this.RequestData     = RequestDemographics;
     this.ResponseData    = new IhiResponseData();
     this.QueryMetadata   = new IhiQueryMetadata();
 }