File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
NHibernate.Test/ConnectionTest Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public void ContextIsSetup()
37
37
}
38
38
}
39
39
40
- public class CustomContext : ICurrentSessionContextWithFactory
40
+ public class CustomContext : ISessionFactoryAwareCurrentSessionContext
41
41
{
42
42
internal ISessionFactoryImplementor Factory ;
43
43
internal static ISession Session ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace NHibernate.Context
13
13
/// <list type="bullet">
14
14
/// <item><description>contain a constructor accepting a single argument of type
15
15
/// <see cref="ISessionFactoryImplementor" />, or implement
16
- /// <see cref="ICurrentSessionContextWithFactory "/></description></item>
16
+ /// <see cref="ISessionFactoryAwareCurrentSessionContext "/></description></item>
17
17
/// <item><description>should be thread safe</description></item>
18
18
/// <item><description>should be fully serializable</description></item>
19
19
/// </list>
@@ -49,7 +49,7 @@ public interface ICurrentSessionContext
49
49
/// this interface allows the <see cref="IObjectsFactory"/> to be used for instantiating the
50
50
/// session context.
51
51
/// </summary>
52
- public interface ICurrentSessionContextWithFactory : ICurrentSessionContext
52
+ public interface ISessionFactoryAwareCurrentSessionContext : ICurrentSessionContext
53
53
{
54
54
/// <summary>
55
55
/// Sets the factory. This method should be called once after creating the context.
Original file line number Diff line number Diff line change @@ -1282,12 +1282,12 @@ private ICurrentSessionContext BuildCurrentSessionContext()
1282
1282
try
1283
1283
{
1284
1284
var implClass = ReflectHelper . ClassForName ( impl ) ;
1285
- if ( ! typeof ( ICurrentSessionContextWithFactory ) . IsAssignableFrom ( implClass ) )
1285
+ if ( ! typeof ( ISessionFactoryAwareCurrentSessionContext ) . IsAssignableFrom ( implClass ) )
1286
1286
{
1287
1287
return ( ICurrentSessionContext ) Activator . CreateInstance ( implClass , this ) ;
1288
1288
}
1289
1289
1290
- var context = ( ICurrentSessionContextWithFactory ) Environment . ObjectsFactory . CreateInstance ( implClass ) ;
1290
+ var context = ( ISessionFactoryAwareCurrentSessionContext ) Environment . ObjectsFactory . CreateInstance ( implClass ) ;
1291
1291
context . SetFactory ( this ) ;
1292
1292
return context ;
1293
1293
}
You can’t perform that action at this time.
0 commit comments