|
239 | 239 | </para>
|
240 | 240 |
|
241 | 241 | <itemizedlist>
|
| 242 | + <listitem> |
| 243 | + <para> |
| 244 | + <literal>NHibernate.Context.AsyncLocalSessionContext</literal> - current sessions are tracked |
| 245 | + by current asynchronous flow. You are responsible to bind and unbind an |
| 246 | + <literal>ISession</literal> instance with static methods of class |
| 247 | + <literal>CurrentSessionContext</literal>. Binding operations from inner flows will not be |
| 248 | + propagated to outer or siblings flows. |
| 249 | + </para> |
| 250 | + </listitem> |
242 | 251 | <listitem>
|
243 | 252 | <para>
|
244 | 253 | <literal>NHibernate.Context.CallSessionContext</literal> - current sessions are tracked
|
245 |
| - by <literal>CallContext</literal>. You are responsible to bind and unbind an <literal> |
246 |
| - ISession</literal> instance with static methods of class <literal>CurrentSessionContext |
247 |
| - </literal>. |
| 254 | + by <literal>CallContext</literal>. You are responsible to bind and unbind an |
| 255 | + <literal>ISession</literal> instance with static methods of class |
| 256 | + <literal>CurrentSessionContext</literal>. |
248 | 257 | </para>
|
249 | 258 | </listitem>
|
250 | 259 | <listitem>
|
|
257 | 266 | </listitem>
|
258 | 267 | <listitem>
|
259 | 268 | <para>
|
260 |
| - <literal>NHibernate.Context.WebSessionContext</literal> - |
261 |
| - stores the current session in <literal>HttpContext</literal>. |
262 |
| - You are responsible to bind and unbind an <literal>ISession</literal> |
263 |
| - instance with static methods of class <literal>CurrentSessionContext</literal>. |
| 269 | + <literal>NHibernate.Context.WebSessionContext</literal> - |
| 270 | + stores the current session in <literal>HttpContext</literal>. |
| 271 | + You are responsible to bind and unbind an <literal>ISession</literal> |
| 272 | + instance with static methods of class <literal>CurrentSessionContext</literal>. |
264 | 273 | </para>
|
265 | 274 | </listitem>
|
266 | 275 | <listitem>
|
267 | 276 | <para>
|
268 | 277 | <literal>NHibernate.Context.WcfOperationSessionContext</literal> - current sessions are tracked
|
269 | 278 | by WCF <literal>OperationContext</literal>. You need to register the <literal>WcfStateExtension</literal>
|
270 |
| - extension in WCF. You are responsible to bind and unbind an <literal>ISession |
271 |
| - </literal> instance with static methods of class <literal>CurrentSessionContext</literal>. |
| 279 | + extension in WCF. You are responsible to bind and unbind an <literal>ISession</literal> |
| 280 | + instance with static methods of class <literal>CurrentSessionContext</literal>. |
272 | 281 | </para>
|
273 | 282 | </listitem>
|
274 | 283 | <listitem>
|
275 | 284 | <para>
|
276 | 285 | <literal>NHibernate.Context.ManagedWebSessionContext</literal> - current
|
277 |
| - sessions are tracked by <literal>HttpContext</literal>. Removed in NHibernate 4.0 |
278 |
| - - <literal>NHibernate.Context.WebSessionContext</literal> should be used instead. |
279 |
| - You are responsible to bind and unbind an <literal>ISession</literal> instance with static methods |
| 286 | + sessions are tracked by <literal>HttpContext</literal>. Removed in NHibernate 4.0 |
| 287 | + - <literal>NHibernate.Context.WebSessionContext</literal> should be used instead. |
| 288 | + You are responsible to bind and unbind an <literal>ISession</literal> instance with static methods |
280 | 289 | on this class, it never opens, flushes, or closes an <literal>ISession</literal> itself.
|
281 | 290 | </para>
|
282 | 291 | </listitem>
|
|
287 | 296 | defines which <literal>NHibernate.Context.ICurrentSessionContext</literal> implementation
|
288 | 297 | should be used. Typically, the value of this parameter would just name the implementation
|
289 | 298 | class to use (including the assembly name); for the out-of-the-box implementations, however,
|
290 |
| - there are corresponding short names: "call", "thread_static", "web" and "wcf_operation", |
| 299 | + there are corresponding short names: <literal>async_local</literal>, <literal>call</literal>, |
| 300 | + <literal>thread_static</literal>, <literal>web</literal> and <literal>wcf_operation</literal>, |
291 | 301 | respectively.
|
292 | 302 | </para>
|
293 | 303 | </sect1>
|
|
0 commit comments