QueryConfigurationStartExtEnumerateAndPageResponseAsTItem, TResponse Method
Configures the enumeration of individual items from the results of a query and then retrieves more pages, if available.
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 EnumerateAndPageResponseAs<TItem, TResponse>( this QueryConfigurationStart source, string urlSegment, Func<TResponse, IEnumerable<TItem>> getItemsFunc, Func<TResponse, IReadOnlyDictionary<string, string>> page, Func<TResponse, bool> when ) where TItem : new()
Parameters
source
Type: Simple.Connector.Framework.HttpQueryConfigurationStart
The current HttpQueryRegistration.
urlSegment
Type: SystemString
getItemsFunc
Type: SystemFuncTResponse, IEnumerableTItem
A function that enumerates the individual TItems from the TResponse.
page
Type: SystemFuncTResponse, IReadOnlyDictionaryString, String
when
Type: SystemFuncTResponse, Boolean
Type Parameters
TItem
The .NET type of the individual query items, typically the 'entity' in TIBCO Scribe®.
TResponse
The .NET type of the root of the response from the HTTP call.
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 QueryConfigurationStart. 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