@@ -42,7 +42,7 @@ public override Task<ICollection> GetOrphansAsync(object snapshot, string entity
42
42
try
43
43
{
44
44
var sn = ( IDictionary < TKey , TValue > ) snapshot ;
45
- return GetOrphansAsync ( ( ICollection ) sn . Values , ( ICollection ) WrappedMap . Values , entityName , Session , cancellationToken ) ;
45
+ return GetOrphansAsync ( ( ICollection ) sn . Values , ( ICollection ) _wrappedMap . Values , entityName , Session , cancellationToken ) ;
46
46
}
47
47
catch ( Exception ex )
48
48
{
@@ -55,11 +55,11 @@ public override async Task<bool> EqualsSnapshotAsync(ICollectionPersister persis
55
55
cancellationToken . ThrowIfCancellationRequested ( ) ;
56
56
IType elementType = persister . ElementType ;
57
57
var xmap = ( IDictionary < TKey , TValue > ) GetSnapshot ( ) ;
58
- if ( xmap . Count != WrappedMap . Count )
58
+ if ( xmap . Count != _wrappedMap . Count )
59
59
{
60
60
return false ;
61
61
}
62
- foreach ( KeyValuePair < TKey , TValue > entry in WrappedMap )
62
+ foreach ( KeyValuePair < TKey , TValue > entry in _wrappedMap )
63
63
{
64
64
// This method is not currently called if a key has been removed/added, but better be on the safe side.
65
65
if ( ! xmap . TryGetValue ( entry . Key , out var value ) ||
@@ -96,17 +96,17 @@ public override async Task InitializeFromCacheAsync(ICollectionPersister persist
96
96
BeforeInitialize ( persister , size ) ;
97
97
for ( int i = 0 ; i < size ; i += 2 )
98
98
{
99
- WrappedMap [ ( TKey ) await ( persister . IndexType . AssembleAsync ( array [ i ] , Session , owner , cancellationToken ) ) . ConfigureAwait ( false ) ] =
99
+ _wrappedMap [ ( TKey ) await ( persister . IndexType . AssembleAsync ( array [ i ] , Session , owner , cancellationToken ) ) . ConfigureAwait ( false ) ] =
100
100
( TValue ) await ( persister . ElementType . AssembleAsync ( array [ i + 1 ] , Session , owner , cancellationToken ) ) . ConfigureAwait ( false ) ;
101
101
}
102
102
}
103
103
104
104
public override async Task < object > DisassembleAsync ( ICollectionPersister persister , CancellationToken cancellationToken )
105
105
{
106
106
cancellationToken . ThrowIfCancellationRequested ( ) ;
107
- object [ ] result = new object [ WrappedMap . Count * 2 ] ;
107
+ object [ ] result = new object [ _wrappedMap . Count * 2 ] ;
108
108
int i = 0 ;
109
- foreach ( KeyValuePair < TKey , TValue > e in WrappedMap )
109
+ foreach ( KeyValuePair < TKey , TValue > e in _wrappedMap )
110
110
{
111
111
result [ i ++ ] = await ( persister . IndexType . DisassembleAsync ( e . Key , Session , null , cancellationToken ) ) . ConfigureAwait ( false ) ;
112
112
result [ i ++ ] = await ( persister . ElementType . DisassembleAsync ( e . Value , Session , null , cancellationToken ) ) . ConfigureAwait ( false ) ;
0 commit comments