IQbservableProvider.cs 1.2 KB

1234567891011121314151617181920212223
  1. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
  2. #if !NO_EXPRESSIONS
  3. using System.Linq.Expressions;
  4. namespace System.Reactive.Linq
  5. {
  6. /// <summary>
  7. /// Defines methods to create and execute queries that are described by an IQbservable object.
  8. /// </summary>
  9. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Qbservable", Justification = "What a pleasure to write 'by design' here.")]
  10. public interface IQbservableProvider
  11. {
  12. /// <summary>
  13. /// Constructs an IQbservable&gt;TResult&lt; object that can evaluate the query represented by a specified expression tree.
  14. /// </summary>
  15. /// <typeparam name="TResult">The type of the elements of the System.Reactive.Linq.IQbservable&lt;T&gt; that is returned.</typeparam>
  16. /// <param name="expression">Expression tree representing the query.</param>
  17. /// <returns>IQbservable object that can evaluate the given query expression.</returns>
  18. IQbservable<TResult> CreateQuery<TResult>(Expression expression);
  19. }
  20. }
  21. #endif