Commit 8620efb
Thread-safe Item Collections for Concurrent mode (#112)
* New thread-safe Item Collection Fixes #95
Added new ThreadSafeSessionStateItemCollection to replace built-in Microsoft one. This fixes the race condition in the indexers. Also commented out all serialization since this is intended to only be used with the in-memory session, so serialization is not necessary.
* Rename to ConcurrentSessionStateItemCollection; Add to project
* Bring Concurrent collection up to par with in-box implementation so it can be used by serializing providers.
* Use concurrent collection in all providers - only when using AllowConcurrentRequestsPerSession.
* Update tests for storeData serialization to cover concurrent collection.
* Bring back simple non-serializing collection for in-proc provider.
---------
Co-authored-by: mellamokb <[email protected]>1 parent bda2db4 commit 8620efb
10 files changed
Lines changed: 1196 additions & 18 deletions
File tree
- src
- CosmosDBSessionStateProviderAsync
- SessionStateModule
- Resources
- SqlSessionStateProviderAsync
- test/Microsoft.AspNet.SessionState.SqlSessionStateProviderAsync.Test
Lines changed: 28 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
| 614 | + | |
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | | - | |
| 631 | + | |
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
1041 | 1063 | | |
1042 | 1064 | | |
1043 | 1065 | | |
| |||
1060 | 1082 | | |
1061 | 1083 | | |
1062 | 1084 | | |
1063 | | - | |
| 1085 | + | |
1064 | 1086 | | |
1065 | 1087 | | |
1066 | 1088 | | |
| |||
1089 | 1111 | | |
1090 | 1112 | | |
1091 | 1113 | | |
1092 | | - | |
| 1114 | + | |
1093 | 1115 | | |
1094 | 1116 | | |
1095 | 1117 | | |
| |||
1106 | 1128 | | |
1107 | 1129 | | |
1108 | 1130 | | |
1109 | | - | |
| 1131 | + | |
1110 | 1132 | | |
1111 | 1133 | | |
1112 | 1134 | | |
1113 | | - | |
| 1135 | + | |
1114 | 1136 | | |
1115 | 1137 | | |
1116 | 1138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
441 | 448 | | |
442 | 449 | | |
443 | 450 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
| |||
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
129 | 135 | | |
130 | 136 | | |
131 | 137 | | |
| |||
0 commit comments