RestConnectionMapperConfigureWithBasicAuthTInfo Method (ConnectionConfigurationStart`1TInfo, String, FuncTInfo, String, String, String)

Builds the connection configuration for the Connector using Basic Authentication.

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 RestConnectionMapperFluentConnection<TInfo> ConfigureWithBasicAuth<TInfo>(
	this ConnectionConfigurationStart<TInfo> source,
	string method,
	Func<TInfo, string> getLoginFunc,
	string username,
	string password
)

Parameters

source

Type: ConnectionConfigurationStartTInfo

The ConnectionConfigurationStart.

method

Type: SystemString

HTTP method used for the connection call.

getLoginFunc

Type: SystemFuncTInfo, StringA function that returns the login URL when given the connection info.

username

Type: SystemString

Username for Basic Authentication.

password

Type: SystemString

Password for Basic Authentication.

Type Parameters

TInfo

Connection type information.

Return Value

Type: RestConnectionMapperFluentConnectionTInfo

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ConnectionConfigurationStartTInfo. 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

RestConnectionMapper Class

ConfigureWithBasicAuth Overload

Simple.Connector.Framework.Http Namespace