| 1 |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. |
| 2 |
|
| 3 |
#if !NO_EXPRESSIONS |
| 4 |
using System.Linq.Expressions; |
| 5 |
|
| 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>TResult< 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<T> 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 |