ZeroFormatter Serializer Usage

Component: ZeroFormatter Serializer
NuGet Package NServiceBus.ZeroFormatter (1.x)
This is a community run project
Target NServiceBus Version: 6.x

Configuring to use ZeroFormatter

var endpointConfiguration = new EndpointConfiguration("Samples.Serialization.ZeroFormatter");

The message

public class CreateOrder :
    public virtual int OrderId { get; set; }

    public virtual long Date { get; set; }

    public virtual int CustomerId { get; set; }

The message send

The message is decorated with ZeroFormatter Attributes.

var message = new CreateOrder
    OrderId = 9,
    Date = DateTime.Now.Ticks,
    CustomerId = 12,
await endpointInstance.SendLocal(message)

Related Articles

Last modified