Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle null session values #348

Merged
merged 5 commits into from
Jun 2, 2023
Merged

Handle null session values #348

merged 5 commits into from
Jun 2, 2023

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
2 participants