Skip to content

Commit f71fe39

Browse files
authored
Do not serialize unnecessary members in SessionFactory (#2885)
1 parent 6c0fd01 commit f71fe39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/NHibernate/Impl/SessionFactoryImpl.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,14 @@ public void HandleEntityNotFound(string entityName, string propertyName, object
170170
[NonSerialized]
171171
private readonly ConcurrentDictionary<string, string[]> entityNameImplementorsMap = new ConcurrentDictionary<string, string[]>(4 * System.Environment.ProcessorCount, 100);
172172
private readonly string uuid;
173+
174+
[NonSerialized]
173175
private bool disposed;
174176

175177
[NonSerialized]
176178
private bool isClosed = false;
177179

180+
[NonSerialized]
178181
private QueryPlanCache queryPlanCache;
179182
[NonSerialized]
180183
private StatisticsImpl statistics;

0 commit comments

Comments
 (0)