Adapter initialization: Primary
The following code initializes PrimaryMessageAdapter and adds it to Connector.
var messageAdapter = new PrimaryMessageAdapter(Connector.TransactionIdGenerator)
{
Login = "<id>",
Password = "<secret>".ToSecureString(),
IsDemo = true,
Account = "<id>",
};
Connector.Adapter.InnerAdapters.Add(messageAdapter);
Set the credentials and any other required properties described on the Connector configuration page.