RemoteProvider.Bind<TElement> Method (IQueryable<TElement>, IRemoteObserver<TElement>, IScheduler)
Binds an enumerable sequence to an observer.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Bind(Of TElement) ( _
source As IQueryable(Of TElement), _
sink As IRemoteObserver(Of TElement), _
scheduler As IScheduler _
) As IRemoteBinding
'Usage
Dim source As IQueryable(Of TElement)
Dim sink As IRemoteObserver(Of TElement)
Dim scheduler As IScheduler
Dim returnValue As IRemoteBinding
returnValue = source.Bind(sink, scheduler)
public static IRemoteBinding Bind<TElement>(
this IQueryable<TElement> source,
IRemoteObserver<TElement> sink,
IScheduler scheduler
)
[ExtensionAttribute]
public:
generic<typename TElement>
static IRemoteBinding^ Bind(
IQueryable<TElement>^ source,
IRemoteObserver<TElement>^ sink,
IScheduler^ scheduler
)
static member Bind :
source:IQueryable<'TElement> *
sink:IRemoteObserver<'TElement> *
scheduler:IScheduler -> IRemoteBinding
JScript does not support generic types and methods.
Type Parameters
- TElement
The sequence element type.
Parameters
- source
Type: System.Linq.IQueryable<TElement>
The enumerable sequence to subscribe to.
- sink
Type: Microsoft.ComplexEventProcessing.Linq.IRemoteObserver<TElement>
The observer that will receive notifications from the enumerable sequence.
- scheduler
Type: System.Reactive.Concurrency.IScheduler
The scheduler to perform the enumeration on.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.IRemoteBinding
The binding between the source and sink.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable<TElement>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=sql.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.111).