-
Notifications
You must be signed in to change notification settings - Fork 66
add support for context.SetSessionStateBehavior #399
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c2f7c1c
add support for context.SetSessionBehavior
645b19f
update httpcontextbase and wrapper
1a87ca5
add support for context.SetSessionBehavior
1ad631f
update httpcontextbase and wrapper
c5a4ff6
Combine things
twsouthwick 9e435da
Merge branch 'tasou/sessionbehavior' of https://github.com/dotnet/sys…
a05b5b3
add SetSessionStateBehaviorTests
4c50db2
Merge remote-tracking branch 'origin/main' into HEAD
twsouthwick ab26235
Separate out the tests
twsouthwick 7d81a1e
fix test
twsouthwick 9f71daa
add unit tests
twsouthwick 15cde5a
rename lazy to preload
twsouthwick bce3cc1
add test for default
twsouthwick 4b1d8c3
update sessionintegrationtests: add tests for sessionattribute and ov…
a4b8e50
update sessionintegrationtests
14c600d
Update test/Microsoft.AspNetCore.SystemWebAdapters.CoreServices.Tests…
twsouthwick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/Microsoft.AspNetCore.SystemWebAdapters/Adapters/SessionState/ISessionStateFeature.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| #if NETCOREAPP | ||
| using System.Web.SessionState; | ||
|
|
||
| namespace Microsoft.AspNetCore.SystemWebAdapters.SessionState; | ||
|
|
||
| internal interface ISessionStateFeature | ||
| { | ||
| SessionStateBehavior State { get; set; } | ||
| } | ||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/Microsoft.AspNetCore.SystemWebAdapters/Internal/SessionStateFeature.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| using System.Web.SessionState; | ||
| using Microsoft.AspNetCore.SystemWebAdapters.SessionState; | ||
|
|
||
| namespace Microsoft.AspNetCore.SystemWebAdapters.Internal | ||
| { | ||
| internal class SessionStateFeature: ISessionStateFeature | ||
twsouthwick marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| public SessionStateBehavior State { get; set; } | ||
| } | ||
| } | ||
12 changes: 12 additions & 0 deletions
12
src/Microsoft.AspNetCore.SystemWebAdapters/SessionState/SessionStateBehavior.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| namespace System.Web.SessionState; | ||
|
|
||
| public enum SessionStateBehavior | ||
| { | ||
| Default = 0, | ||
| Required = 1, | ||
| ReadOnly = 2, | ||
| Disabled = 3 | ||
| }; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.