Class SessionBuilder
Builder for a Session object.
Inherited Members
Namespace: Ingenico.Connect.Sdk
Assembly: connect-sdk-dotnet.dll
Syntax
public class SessionBuilder
Methods
Build()
Creates a fully initialized Session object.
Declaration
public Session Build()
Returns
Type | Description |
---|---|
Session |
Exceptions
Type | Condition |
---|---|
ArgumentException | if not all required components are set |
WithApiEndpoint(Uri)
Sets the Ingenico ePayments platform API endpoint URI to use.
Declaration
public SessionBuilder WithApiEndpoint(Uri apiEndpoint)
Parameters
Type | Name | Description |
---|---|---|
Uri | apiEndpoint | The API endpoint. |
Returns
Type | Description |
---|---|
SessionBuilder | This. |
WithAuthenticator(IAuthenticator)
Sets the IAuthenticator to use.
Declaration
public SessionBuilder WithAuthenticator(IAuthenticator authenticator)
Parameters
Type | Name | Description |
---|---|---|
IAuthenticator | authenticator | The authenticator. |
Returns
Type | Description |
---|---|
SessionBuilder | This. |
WithConnection(IConnection)
Sets the IConnection to use.
Declaration
public SessionBuilder WithConnection(IConnection connection)
Parameters
Type | Name | Description |
---|---|---|
IConnection | connection | The connection. |
Returns
Type | Description |
---|---|
SessionBuilder | This. |
WithMetaDataProvider(MetaDataProvider)
Sets the MetaDataProvider to use.
Declaration
public SessionBuilder WithMetaDataProvider(MetaDataProvider metaDataProvider)
Parameters
Type | Name | Description |
---|---|---|
MetaDataProvider | metaDataProvider | Meta data provider. |
Returns
Type | Description |
---|---|
SessionBuilder | This. |