Click or drag to resize

Adapter initialization OpenECry

The code below demonstrates how to initialize the OpenECryMessageAdapter and send it to Connector.

C#
Connector Connector = new Connector();                
...                
var messageAdapter = new OpenECryMessageAdapter(Connector.TransactionIdGenerator)
{
    Login = "<Your Login>",
    Password = "<Your Password>".To<SecureString>(),
    Address = "<Address>".To<EndPoint>(),
    EnableOECLogging = true,
};

Connector.Adapter.InnerAdapters.Add(messageAdapter);
...
See Also