JSON.NET

This serializer uses Newtonsoft.Json to serialize the data for the transport. Because this serializes the data into human readable JSON this is a good candidate to use during development, but is also robust enough to be used in a production environment.

Installation

As with transports, the Json.NET serializer for Cambion is available on NuGet so you can install it using the NuGet Package Manager Console:

Install-Package Whitestone.Cambion.Serializer.JsonNet

Usage

The serializer can be set up using an extension method to ICambionSerializerBuilder:

public void ConfigureServices(IServiceCollection services)
{
    services.AddCambion()
        .UseExampleTransport()
        .WithJsonNetSerializer();
}