RemoteProvider.Bind<TPayload> Method (IQStreamable<TPayload>, Func<Nullable<DateTimeOffset>, Int32, IRemoteObserver<EdgeEvent<TPayload>>>)
Binds temporal stream to edge event observer parameterized on high-water mark and offset.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Bind(Of TPayload) ( _
source As IQStreamable(Of TPayload), _
sink As Func(Of Nullable(Of DateTimeOffset), Integer, IRemoteObserver(Of EdgeEvent(Of TPayload))) _
) As IRemoteStreamableBinding
'Usage
Dim source As IQStreamable(Of TPayload)
Dim sink As Func(Of Nullable(Of DateTimeOffset), Integer, IRemoteObserver(Of EdgeEvent(Of TPayload)))
Dim returnValue As IRemoteStreamableBinding
returnValue = source.Bind(sink)
public static IRemoteStreamableBinding Bind<TPayload>(
this IQStreamable<TPayload> source,
Func<Nullable<DateTimeOffset>, int, IRemoteObserver<EdgeEvent<TPayload>>> sink
)
[ExtensionAttribute]
public:
generic<typename TPayload>
static IRemoteStreamableBinding^ Bind(
IQStreamable<TPayload>^ source,
Func<Nullable<DateTimeOffset>, int, IRemoteObserver<EdgeEvent<TPayload>^>^>^ sink
)
static member Bind :
source:IQStreamable<'TPayload> *
sink:Func<Nullable<DateTimeOffset>, int, IRemoteObserver<EdgeEvent<'TPayload>>> -> IRemoteStreamableBinding
JScript does not support generic types and methods.
Type Parameters
- TPayload
The payload type.
Parameters
- source
Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TPayload>
The streamable source.
- sink
Type: System.Func<Nullable<DateTimeOffset>, Int32, IRemoteObserver<EdgeEvent<TPayload>>>
A function returning an observer given high-water mark (DateTimeOffset?) and offset for the last completed checkpoint. Where no checkpoint has completed, the high-water mark is null.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.IRemoteStreamableBinding
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 IQStreamable<TPayload>. 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).