You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my legacy application, I have session items that are dynamically named at runtime based on request parameters.
How do I register such keys with JsonSessionSerializerOptions?
For example, could you consider supporting the following functionality?
The json serialization out of the box is intended for known keys. If you want to register dynamic keys, you'll need to register your own ISessionKeySerializer.
If you want to be able to use dynamic keys with the json session serialization, we'd need a way to plumb that through. Feel free to explore a POC there if you want.
Discussed this during triage. Might be interesting to add a sample that shows how you can register your own ISessionKeySerializer. If anyone is interested in adding a sample before we get to this, let us know 😄
I've added a sample and updated things so that you can register multiple ISessionKeySerializer instances and a composite of all of them will be used to serialize/deserialize session state.
In my legacy application, I have session items that are dynamically named at runtime based on request parameters.
How do I register such keys with
JsonSessionSerializerOptions
?For example, could you consider supporting the following functionality?
The text was updated successfully, but these errors were encountered: