IAsyncQueryable.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
  2. using System.Collections.Generic;
  3. using System.Linq.Expressions;
  4. namespace System.Linq
  5. {
  6. /// <summary>
  7. /// Asynchronous enumerable sequence represented by an expression tree.
  8. /// </summary>
  9. public interface IAsyncQueryable
  10. {
  11. /// <summary>
  12. /// Gets the type of the elements in the sequence.
  13. /// </summary>
  14. Type ElementType { get; }
  15. /// <summary>
  16. /// Gets the expression representing the sequence.
  17. /// </summary>
  18. Expression Expression { get; }
  19. /// <summary>
  20. /// Gets the query provider used to execute the sequence.
  21. /// </summary>
  22. IAsyncQueryProvider Provider { get; }
  23. }
  24. /// <summary>
  25. /// Asynchronous enumerable sequence represented by an expression tree.
  26. /// </summary>
  27. /// <typeparam name="T">The type of the elements in the sequence.</typeparam>
  28. public interface IAsyncQueryable<
  29. #if !NO_VARIANCE
  30. out
  31. #endif
  32. T> : IAsyncEnumerable<T>, IAsyncQueryable
  33. {
  34. }
  35. }