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

Remove public constructor from HttpSessionState #553

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

twsouthwick
Copy link
Member

@twsouthwick twsouthwick commented Nov 6, 2024

There was no public constructor for this on framework. This was added initially as a way to override the current session implementation. However, now it can be changed by setting HttpContext.Features.Get<ISessionStateFeature>().State and it will be propagated in the session. This API is no longer needed and not how we want people to use it.

This is a breaking change, but we're already doing that for a few other APIs for v2. This will help guide people to the recommended approach to override behavior.

There was no public constructor for this on framework. This was added initially as a way to override the current session implementation. However, now it can be changed by setting `HttpContext.Features.Get<ISessionStateFeature>().State` and it will be propagated in the session.

This is a breaking change, but we're already doing that for a few other APIs for v2. This will help guide people to the recommended approach to override behavior.
@twsouthwick
Copy link
Member Author

@joperezr this is not a required one, but figured with some of the other API cleanup I did as part of v2, I'd like to see this removed since it's not the recommended path to handle this.

@twsouthwick twsouthwick merged commit cda89e9 into main Nov 15, 2024
5 checks passed
@twsouthwick twsouthwick deleted the remove-public-session branch November 15, 2024 18:34
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.

2 participants