RemoteProvider.ToEdgeStreamable<TSource, TPayload> 方法 (IQbservable<TSource>, Expression<Func<TSource, EdgeEvent<TPayload>>>, AdvanceTimeSettings)
將序列轉換成暫時資料流。
命名空間: Microsoft.ComplexEventProcessing.Linq
組件: Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)
語法
'宣告
<ExtensionAttribute> _
Public Shared Function ToEdgeStreamable(Of TSource, TPayload) ( _
source As IQbservable(Of TSource), _
selector As Expression(Of Func(Of TSource, EdgeEvent(Of TPayload))), _
advanceTimeSettings As AdvanceTimeSettings _
) As IQStreamable(Of TPayload)
'用途
Dim source As IQbservable(Of TSource)
Dim selector As Expression(Of Func(Of TSource, EdgeEvent(Of TPayload)))
Dim advanceTimeSettings As AdvanceTimeSettings
Dim returnValue As IQStreamable(Of TPayload)
returnValue = source.ToEdgeStreamable(selector, _
advanceTimeSettings)
public static IQStreamable<TPayload> ToEdgeStreamable<TSource, TPayload>(
this IQbservable<TSource> source,
Expression<Func<TSource, EdgeEvent<TPayload>>> selector,
AdvanceTimeSettings advanceTimeSettings
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TPayload>
static IQStreamable<TPayload>^ ToEdgeStreamable(
IQbservable<TSource>^ source,
Expression<Func<TSource, EdgeEvent<TPayload>^>^>^ selector,
AdvanceTimeSettings^ advanceTimeSettings
)
static member ToEdgeStreamable :
source:IQbservable<'TSource> *
selector:Expression<Func<'TSource, EdgeEvent<'TPayload>>> *
advanceTimeSettings:AdvanceTimeSettings -> IQStreamable<'TPayload>
JScript 不支援泛型型別及方法。
型別參數
- TSource
輸入元素類型。
- TPayload
裝載類型。
參數
- source
型別:System.Reactive.Linq.IQbservable<TSource>
遠端序列。
- selector
型別:System.Linq.Expressions.Expression<Func<TSource, EdgeEvent<TPayload>>>
在給定輸入序列的元素時,傳回資料流事件的選取器。
- advanceTimeSettings
型別:Microsoft.ComplexEventProcessing.AdvanceTimeSettings
套用至連入事件的提前時間設定。
傳回值
型別:Microsoft.ComplexEventProcessing.Linq.IQStreamable<TPayload>
遠端暫時資料流。
使用注意事項
在 Visual Basic 及 C# 中,您可以在任何型別 IQbservable<TSource> 的物件上將這個方法做為執行個體方法呼叫。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱 https://msdn.microsoft.com/zh-tw/library/bb384936(v=sql.111) 或 https://msdn.microsoft.com/zh-tw/library/bb383977(v=sql.111)。