private CacheExecutionResult TryInvokeGetMethod(ChannelMethodHeuristicOptions options, HeuristicsInfo hInfo)
        {
            CacheExecutionResult result = new CacheExecutionResult();

            if (options.Request.QueryString.AllKeys.Length == 0)
            {
                _msgService.WriteHttpResponse(hInfo.MethodResponse, options.Response);
                result.Executed = true;
                return(result);
            }
            else
            {
                ChannelMethodDeserializerFactory dsrFactory = new ChannelMethodDeserializerFactory(options.Request.QueryString);
                List <object> requestParameters             = dsrFactory.DeserializeFromQueryParameters(_descriptor.GetMethodDescription(options.ChannelMethod));

                if (ParameteresMatch(hInfo.Parameters, requestParameters))
                {
                    _msgService.WriteHttpResponse(hInfo.MethodResponse, options.Response);
                    result.Executed = true;
                    return(result);
                }
                else
                {
                    result.Executed        = false;
                    result.DataProcessed   = true;
                    result.Data.HasData    = true;
                    result.Data.Parameters = requestParameters;
                    return(result);
                }
            }
        }
        private CacheExecutionResult TryInvokePostMethod(ChannelMethodHeuristicOptions options, HeuristicsInfo hInfo)
        {
            CacheExecutionResult result = new CacheExecutionResult();

            if (options.Request.HasEntityBody)
            {
                ChannelMethodDeserializerFactory dsrFactory = new ChannelMethodDeserializerFactory(options.Request.InputStream);
                List <object> requestParameters             = dsrFactory.DeserializeFromBody(_descriptor.GetMethodDescription(options.ChannelMethod), options.Request.ContentType);

                if (ParameteresMatch(hInfo.Parameters, requestParameters))
                {
                    _msgService.WriteHttpResponse(hInfo.MethodResponse, options.Response);
                    result.Executed = true;
                }
                else
                {
                    result.Executed        = false;
                    result.DataProcessed   = true;
                    result.Data.HasData    = true;
                    result.Data.Parameters = requestParameters;
                }
            }
            else
            {
                _msgService.WriteHttpResponse(hInfo.MethodResponse, options.Response);
                result.Executed = true;
            }

            return(result);
        }