Skip to content

Commit a6f14ad

Browse files
committed
Remove obsolete ManagedWebSessionContext class. NH-3314.
This was made redundant by WebSessionContext, introduced in NH-990.
1 parent 5b9762a commit a6f14ad

File tree

5 files changed

+2
-87
lines changed

5 files changed

+2
-87
lines changed

doc/reference/modules/architecture.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
defines which <literal>NHibernate.Context.ICurrentSessionContext</literal> implementation
287287
should be used. Typically, the value of this parameter would just name the implementation
288288
class to use (including the assembly name); for the out-of-the-box implementations, however,
289-
there are corresponding short names: "managed_web", "call", "thread_static", "web" and "wcf_operation",
289+
there are corresponding short names: "call", "thread_static", "web" and "wcf_operation",
290290
respectively.
291291
</para>
292292
</sect1>

src/NHibernate.Example.Web/Web.Config

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
</property>
7777
<property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
7878
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
79-
<property name="current_session_context_class">managed_web</property>
79+
<property name="current_session_context_class">web</property>
8080
<property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property>
8181
</session-factory>
8282
</hibernate-configuration>

src/NHibernate/Context/ManagedWebSessionContext.cs

-82
This file was deleted.

src/NHibernate/Impl/SessionFactoryImpl.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1229,8 +1229,6 @@ private ICurrentSessionContext BuildCurrentSessionContext()
12291229
return new ThreadStaticSessionContext(this);
12301230
case "web":
12311231
return new WebSessionContext(this);
1232-
case "managed_web":
1233-
return new ManagedWebSessionContext(this);
12341232
case "wcf_operation":
12351233
return new WcfOperationSessionContext(this);
12361234
}

src/NHibernate/NHibernate.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,6 @@
12681268
<Compile Include="Context\CallSessionContext.cs" />
12691269
<Compile Include="Context\CurrentSessionContext.cs" />
12701270
<Compile Include="Context\ICurrentSessionContext.cs" />
1271-
<Compile Include="Context\ManagedWebSessionContext.cs" />
12721271
<Compile Include="Context\MapBasedSessionContext.cs" />
12731272
<Compile Include="Context\ThreadLocalSessionContext.cs" />
12741273
<Compile Include="Context\ThreadStaticSessionContext.cs" />

0 commit comments

Comments
 (0)