Adapter initialization: Definedge
The following code initializes DefinedgeMessageAdapter and adds it to Connector.
var messageAdapter = new DefinedgeMessageAdapter(Connector.TransactionIdGenerator)
{
Key = "<key>".ToSecureString(),
Secret = "<secret>".ToSecureString(),
Token = "<token>".ToSecureString(),
WebSocketToken = "<token>".ToSecureString(),
UserId = "<id>",
AccountId = "<id>",
};
Connector.Adapter.InnerAdapters.Add(messageAdapter);
Set the credentials and any other required properties described on the Connector configuration page.