RestConnectionMapperFluentConnectionTConnectionInfoFromResponseToContextTResponse Method

Maps the response to the Connector's context.

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 RestConnectionMapperFluentConnection<TConnectionInfo> FromResponseToContext<TResponse>(
	string keyName,
	Func<TResponse, string> f
)

Parameters

keyName

Type: SystemString

Key to put this value in the context.

f

Type: SystemFuncTResponse, String

A function that takes the response and returns a string that is placed in the context.

Type Parameters

TResponse

Type that is the root of the serialized response.

Return Value

Type: RestConnectionMapperFluentConnectionTConnectionInfo

Updated connection configuration.

See

RestConnectionMapperFluentConnectionTConnectionInfo Class

Simple.Connector.Framework.Http Namespace