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

restore ISerializer ability, "safely" #218

Closed
wants to merge 20 commits into from

Conversation

zachrybaker
Copy link

This will resolve issue 185

Copy link
Contributor

@stanleysmall-microsoft stanleysmall-microsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this contribution! I think people will like being able to use custom serialization

src/Shared/StackExchangeClientConnection.cs Outdated Show resolved Hide resolved
src/RedisSessionStateProvider/RedisConnectionWrapper.cs Outdated Show resolved Hide resolved
src/Shared/ProviderConfiguration.cs Outdated Show resolved Hide resolved
src/Shared/BinaryFormattingSessionSerializer.cs Outdated Show resolved Hide resolved
@stanleysmall-microsoft
Copy link
Contributor

@zachrybaker can you please agree to the CLA?

@zachrybaker
Copy link
Author

@zachrybaker please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

@zachrybaker
Copy link
Author

@microsoft-github-policy-service agree

@zachrybaker
Copy link
Author

@stanleysmall-microsoft if you can recap what you’re looking for me at this point, I can try to put some attention on it over the weekend or something.

@zachrybaker
Copy link
Author

zachrybaker commented Jan 15, 2024 via email

@stanleysmall-microsoft
Copy link
Contributor

@stanleysmall-microsoft if you can recap what you’re looking for me at this point, I can try to put some attention on it over the weekend or something.

@zachrybaker thanks for making this PR. I think your changes will improve the user experience of the package. I already made some changes to your branch which I think can be merged soon. The only questions I had were about publishSessionChanges and the renaming the session key. Maybe we could add these features in a separate PR? I'm just trying to understand the impact of these potential changes for now.

@zachrybaker
Copy link
Author

zachrybaker commented Jan 23, 2024 via email

@zachrybaker
Copy link
Author

zachrybaker commented Apr 9, 2024

@stanleysmall-microsoft Can you comment on what is going on with this PR and branch? AFAICT I submitted a PR to restore the ability to serialize to whatever format necessary, providing the means to do safe serialization. I also provided an option to publish the session so that subscribers (for example replacement apps using the Microsoft.SystemWebAdapters package) could interop and share session out of process. This is important for the Blazor use case, as session support in Blazor server is not there yet (and may never be). It seems you guys repurposed my branch to do maintenance work but axed my features and the whole purpose of the branch. Can you explain?

@frankyjquintero
Copy link

frankyjquintero commented Jun 30, 2024

@stanleysmall-microsoft @philon-msft Can you comment on what is going on with this PR and branch?

@stanleysmall-microsoft
Copy link
Contributor

Hi @frankyjquintero, I intend on merging and releasing this change soon. It is ready for review (in my opinion) and I am waiting for PR feedback.

@stanleysmall-microsoft
Copy link
Contributor

After discussing with our team leadership, we’ve decided against merging this PR. Drivers for this decision include:

  • This provider is on a retirement path because ASP.NET Core contains new built-in caching functionality that should be used instead. As the package approaches retirement, the priority is on maintaining stability and minimizing changes.
  • As an MIT-licensed open source project, users are welcome to fork this code and modify it to add their own custom serialization as needed. In most cases, that approach will yield a simpler and more efficient solution than going through a generalized ISerializer.
  • Users who prefer not to modify provider code can use the previous version 4.0.1 of this package, which does support custom serializers.

That said, we do appreciate the work that went into this contribution and the sense of community that it demonstrates. We look forward to working with you to evolve the caching story in the ASP.NET Core space. Recent developments there are simplifying cache integration while dramatically improving performance:

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.

v5 - Microsoft.Web.Redis.ISerializer is not available any more
4 participants