Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 811 Bytes

README.md

File metadata and controls

37 lines (34 loc) · 811 Bytes

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();