@@ -143,7 +143,7 @@ private static void StashPushObjects(RuntimeDataStorage storage)
143143 var extensionObjs = new List < ManagedType > ( ) ;
144144 var wrappers = new Dictionary < object , List < CLRObject > > ( ) ;
145145 var serializeObjs = new CLRWrapperCollection ( ) ;
146- var contexts = new Dictionary < IntPtr , PyObjectSerializeContext > ( ) ;
146+ var contexts = new Dictionary < IntPtr , InterDomainContext > ( ) ;
147147 foreach ( var entry in objs )
148148 {
149149 var obj = entry . Key ;
@@ -152,7 +152,7 @@ private static void StashPushObjects(RuntimeDataStorage storage)
152152 {
153153 case ManagedType . TrackTypes . Extension :
154154 Debug . Assert ( obj . GetType ( ) . IsSerializable ) ;
155- var context = new PyObjectSerializeContext ( ) ;
155+ var context = new InterDomainContext ( ) ;
156156 contexts [ obj . pyHandle ] = context ;
157157 obj . Save ( context ) ;
158158 extensionObjs . Add ( obj ) ;
@@ -204,7 +204,7 @@ private static void StashPushObjects(RuntimeDataStorage storage)
204204 foreach ( var clrObj in wrappers [ item . Instance ] )
205205 {
206206 XIncref ( clrObj . pyHandle ) ;
207- var context = new PyObjectSerializeContext ( ) ;
207+ var context = new InterDomainContext ( ) ;
208208 contexts [ clrObj . pyHandle ] = context ;
209209 clrObj . Save ( context ) ;
210210 }
@@ -215,12 +215,12 @@ private static void StashPushObjects(RuntimeDataStorage storage)
215215 storage . AddValue ( "contexts" , contexts ) ;
216216 }
217217
218- private static Dictionary < ManagedType , PyObjectSerializeContext > StashPopObjects ( RuntimeDataStorage storage )
218+ private static Dictionary < ManagedType , InterDomainContext > StashPopObjects ( RuntimeDataStorage storage )
219219 {
220220 var extensions = storage . GetValue < List < ManagedType > > ( "extensions" ) ;
221221 var internalStores = storage . GetValue < List < CLRObject > > ( "internalStores" ) ;
222- var contexts = storage . GetValue < Dictionary < IntPtr , PyObjectSerializeContext > > ( "contexts" ) ;
223- var storedObjs = new Dictionary < ManagedType , PyObjectSerializeContext > ( ) ;
222+ var contexts = storage . GetValue < Dictionary < IntPtr , InterDomainContext > > ( "contexts" ) ;
223+ var storedObjs = new Dictionary < ManagedType , InterDomainContext > ( ) ;
224224 foreach ( var obj in Enumerable . Union ( extensions , internalStores ) )
225225 {
226226 var context = contexts [ obj . pyHandle ] ;
@@ -356,7 +356,7 @@ public T PopValue<T>(out T value)
356356
357357
358358 [ Serializable ]
359- class PyObjectSerializeContext
359+ class InterDomainContext
360360 {
361361 private RuntimeDataStorage _storage ;
362362 public RuntimeDataStorage Storage => _storage ?? ( _storage = new RuntimeDataStorage ( ) ) ;
0 commit comments