HttpCallBuilderExtEnumerateResponseAs, Method
Configures the enumeration of individual items from the results of a query.
Namespace: Simple.Connector.Framework.Http
Assembly: Simple.Connector.Framework (in Simple.Connector.Framework.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
public static HttpQueryRegistration EnumerateResponseAs<TItem, TResponse>( this HttpQueryRegistration source, Func<TResponse, IEnumerable<TItem>> func ) where TItem : new()
Parameters
source
Type: HttpQueryRegistration
The current HttpQueryRegistration.
func
Type: SystemFuncTResponse, IEnumerableTitem
A function that enumerates the individual TItems from the TResponse.
Type Parameters
TItem
The .NET type of the individual query items. This is typically the 'entity' in TIBCO Scribe®.
TResponse
The .NET type of the root of the HTTP call response.
Return Value
Type: HttpQueryRegistration
An updated HttpQueryRegistration.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type HttpQueryRegistration. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See