Ejemplo n.º 1
0
        internal WebQuery(HttpClient client, Uri relativeAddress, IExpressionToUriConverter converter)
        {
            string resourceBaseAddress = null;
            string resourceFullAddress = Utility.CombineUri(client.BaseAddress.AbsoluteUri, relativeAddress.OriginalString);
            string resourceName        = ExtractResourceName(resourceFullAddress, out resourceBaseAddress);

            this.expression = new ResourceSetExpression(typeof(IOrderedQueryable <T>), null, Expression.Constant(resourceName), typeof(T), null, CountOption.None, null, null);
            this.provider   = new WebQueryProvider(resourceBaseAddress, client, converter);
        }
Ejemplo n.º 2
0
 internal WebQuery(Expression expression, WebQueryProvider provider)
 {
     this.provider   = provider;
     this.expression = expression;
 }
Ejemplo n.º 3
0
 internal WebOrderedQuery(Expression expression, WebQueryProvider provider)
     : base(expression, provider)
 {
 }