Skip to content

Conversation

@twsouthwick
Copy link
Member

@twsouthwick twsouthwick commented May 30, 2023

This change does the following to handle null values (including nullable structs):

  1. Allow null values to be passed into ISessionKeySerializer.TrySerialize
  2. Check if null (or if Nullable<>) and serialize it
  3. Remove special casing of null values in the SessionState default serializer (BinarySessionSerializer)

Fixes #346

This change does the following to handle null values (including nullable structs):

1. Allow null values to be passed into ISessionKeySerializer.TrySerialize
2. Check if null (or if Nullable<>) and serialize it
3. Remove special casing of null values in the SessionState default serializer (BinarySessionSerializer), which also requires a bump in version
4. The BinarySessionSerializer is updated to understand reading v1 or v2 values
@twsouthwick twsouthwick force-pushed the tasou/session-null-values branch from 10655c9 to a5b2ff4 Compare June 1, 2023 22:17
@twsouthwick twsouthwick requested a review from Tratcher June 2, 2023 18:33
@twsouthwick twsouthwick merged commit 7906844 into main Jun 2, 2023
@twsouthwick twsouthwick deleted the tasou/session-null-values branch June 2, 2023 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session serializer does not support nullables

3 participants