// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information. 
using System.Collections.Generic;
using System.Linq.Expressions;

namespace System.Linq
{
    /// <summary>
    /// Asynchronous enumerable sequence represented by an expression tree.
    /// </summary>
    public interface IAsyncQueryable
    {
        /// <summary>
        /// Gets the type of the elements in the sequence.
        /// </summary>
        Type ElementType { get; }

        /// <summary>
        /// Gets the expression representing the sequence.
        /// </summary>
        Expression Expression { get; }

        /// <summary>
        /// Gets the query provider used to execute the sequence.
        /// </summary>
        IAsyncQueryProvider Provider { get; }
    }

    /// <summary>
    /// Asynchronous enumerable sequence represented by an expression tree.
    /// </summary>
    /// <typeparam name="T">The type of the elements in the sequence.</typeparam>
    public interface IAsyncQueryable<out T> : IAsyncEnumerable<T>, IAsyncQueryable
    {
    }
}