Wire Serializer Usage

Component: Wire Serializer
NuGet Package NServiceBus.Wire (3-pre)
This is a community run project
Target NServiceBus Version: 7.x
This page targets a pre-release version and is subject to change prior to the final release.

Configuring to use Wire

var endpointConfiguration = new EndpointConfiguration("Samples.Serialization.Wire");
endpointConfiguration.UseSerialization<WireSerializer>();

The message send

var message = new CreateOrder
{
    OrderId = 9,
    Date = DateTime.Now,
    CustomerId = 12,
    OrderItems = new List<OrderItem>
    {
        new OrderItem
        {
            ItemId = 6,
            Quantity = 2
        },
        new OrderItem
        {
            ItemId = 5,
            Quantity = 4
        },
    }
};
await endpointInstance.SendLocal(message)
    .ConfigureAwait(false);

The Output

Since Wire is a binary format there is not much human readable in the message body.

Related Articles


Last modified