IQbservableProvider.cs 1.2 KB

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