Connxio NuGet
The interaction NuGet exists to allow users of Connxio(CX) to interact with the CX API both synchronously and asynchronously. It also provides handlers for Blob and ServiceBus interaction, enabling programmatic use of many of Connxio's main features. You still need to set up your integrations in the CX portal, and add any transformation components you may require there. The package can be found here: Interaction NuGet
Prerequisites
- .NET version >= 8.0
Message Config
The MessageConfig-object allows you to control some parts of the flow when using the handlers. When using the config, it is required that it reflects your integration in the CX portal. When using the Wrapped functionality in CX, you may set the values here and automatically wrap your message, or manually wrap it yourself using the WrapperHelper. There are three Config objects to allow for Dependency Injection when injecting the different handlers. MessageConfig is the base, ServiceBusMessageConfig inherits and adds a PureMessageSending boolean, and lastly BlobMessageConfig which inherits from ServiceBusMessageConfig as they are used interchangably.
This object only configures the message behaviour up to the point of sending it to Connxio. If you have not configured your Integration accordingly, your message might fail. E.g. setting the configuration with PureMessageSending to true, whilst sending normal messages in the CX Integration Configuration will fail, as there is no SasUri for the normal message pipeline to fetch the file.
Example:
MessageConfig config = new()
{
MessageInboundEncoding = MessageInboundEncoding.UTF8,
MessageInboundFormat = MessageInboundFormat.JSON,
Wrap = true,
WrapperType = WrapperType.Json,
InterchangeId = interchangeId,
IsLoadTest = true,
IsTest = true
};
ServiceBusMessageConfig config = new()
{
...
PureMessageSending = true
};
Much of the functionality within this package can be used outside of a Connxio context.