File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Extensions/Xtensive.Orm.Web Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 99namespace Xtensive . Orm . Web
1010{
1111 /// <summary>
12- /// A wrapper that provides access <see cref="Xtensive.Orm.Session">Session </see>
13- /// and <see cref="Xtensive.Orm.TransactionScope">TransactionScope </see>.
12+ /// A wrapper that provides access <see cref="Xtensive.Orm.Session"></see>
13+ /// and <see cref="Xtensive.Orm.TransactionScope"> that are in <see cref="HttpContext"/>. </see>.
1414 /// </summary>
1515 public sealed class SessionAccessor
1616 {
@@ -20,15 +20,17 @@ public sealed class SessionAccessor
2020 private HttpContext context ;
2121
2222 /// <summary>
23- /// Provides session from bound to <see cref="HttpContext"/>.
23+ /// Provides <see cref="Orm.Session"/> from bound to <see cref="HttpContext"/>.
24+ /// If no <see cref="Orm.Session"/> instance found, return <see langword="null"/>.
2425 /// </summary>
2526 public Session Session =>
2627 context != null && context . Items . TryGetValue ( SessionIdentifier , out var instance )
2728 ? ( Session ) instance
2829 : null ;
2930
3031 /// <summary>
31- /// Provides opened transaction scope bound to <see cref="HttpContext"/>.
32+ /// Provides opened <see cref="Orm.TransactionScope"/> bound to <see cref="HttpContext"/>.
33+ /// If no <see cref="Orm.Session"/> instance found, return <see langword="null"/>.
3234 /// </summary>
3335 public TransactionScope TransactionScope =>
3436 context != null && context . Items . TryGetValue ( TransactionScope , out var instance )
@@ -45,4 +47,4 @@ internal IDisposable BindHttpContext(HttpContext context)
4547
4648 private void NullTheContext ( bool disposing ) => context = null ;
4749 }
48- }
50+ }
You can’t perform that action at this time.
0 commit comments