ObservableCepStream.Select<TInput, TOutput> Method
Projects each event of an observable input stream into a new event.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing.Observable (in Microsoft.ComplexEventProcessing.Observable.dll)
Syntax
public static ICepObservable<TOutput> Select<TInput, TOutput>(
this ICepObservable<TInput> source,
Expression<Func<TInput, TOutput>> selector
)
Type Parameters
- TInput
Projects each event of an observable input stream into a new event.
- TOutput
Type of the result.
Parameters
- source
Type: Microsoft.ComplexEventProcessing.Linq.ICepObservable<TInput>
The observable source to be projected. This parameter cannot be null.
- selector
Type: System.Linq.Expressions.Expression<Func<TInput, TOutput>>
The projection selector. This parameter cannot be null.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.ICepObservable<TOutput>
The observable stream of projected events.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ICepObservable<TInput>. 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.105) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.105).