public static LocalTimeSerializer RegisterSerializer() { LocalTimeSerializer serializer = new LocalTimeSerializer(); BsonSerializer.RegisterSerializer(typeof(LocalTime), serializer); return(serializer); }
public static void RegisterAll(IDateTimeZoneProvider provider) { ZonedDateTimeSerializer.RegisterSerializer(provider); LocalDateTimeSerializer.RegisterSerializer(); LocalDateSerializer.RegisterSerializer(); LocalTimeSerializer.RegisterSerializer(); OffSetDatetimeSerializer.RegisterSerializer(); OffSetTimeSerializer.RegisterSerializer(); OffSetDateSerializer.RegisterSerializer(); PeriodSerializer.RegisterSerializer(); DurationSerializer.RegisterSerializer(); }