Orleans.Serialization.NodaTime is a library that provides Orleans serialization functionality for NodaTime.
The library implements codecs and copiers for the following types:
- Instant
- Offset
- CalendarSystem
- LocalDateTime
- LocalDate
- LocalTime
- OffsetDateTime
- OffsetDate
- OffsetTime
- DateTimeZone
- ZonedDateTime
- Duration
- Period
- Interval
- DateInterval
await Host
.CreateDefaultBuilder()
.ConfigureServices((ctx, services) =>
{
services.AddOrleans(builder =>
{
builder.Services.AddSerializer(serializerBuilder =>
{
serializerBuilder.AddNodaTimeSerializers();
})
})
})
.UseConsoleLifetime()
.Build()
.RunAsync();