Class CallContext
A call context can be used to send extra information with a request, and to receive extra information from a response. Please note that this class is not thread-safe. Each request should get its own call context instance.
Inherited Members
Namespace: Ingenico.Connect.Sdk
Assembly: connect-sdk-dotnet.dll
Syntax
public class CallContext
Properties
IdempotenceKey
Declaration
public string IdempotenceKey { get; }
Property Value
| Type | Description |
|---|---|
| string |
IdempotenceRequestTimestamp
Gets the idempotence request timestamp from the response to the last request for which this call context was used.
Declaration
public long? IdempotenceRequestTimestamp { get; set; }
Property Value
| Type | Description |
|---|---|
| long? | The idempotence request timestamp. |
Remarks
Returns null if no idempotencerequest was present.
The setter should only be called by Communicator objects based
on the response to the request for which this call context was used.
Methods
WithIdempotenceKey(string)
Sets the idempotence key to use for the next request for which this call context is used.
Declaration
public CallContext WithIdempotenceKey(string idempotenceKey)
Parameters
| Type | Name | Description |
|---|---|---|
| string | idempotenceKey | Idempotence key. |
Returns
| Type | Description |
|---|---|
| CallContext | This. |