1 write to identityToDescriptor
System.Data.Services.Client (1)
System\Data\Services\Client\DataServiceContext.cs (1)
3572
System.Threading.Interlocked.CompareExchange(ref this.
identityToDescriptor
, new Dictionary<String, EntityDescriptor>(EqualityComparer<String>.Default), null);
13 references to identityToDescriptor
System.Data.Services.Client (13)
System\Data\Services\Client\DataServiceContext.cs (13)
1626
if ((null != this.
identityToDescriptor
) &&
1629
Object.ReferenceEquals(resource, this.
identityToDescriptor
[resource.Identity]))
1739
this.
identityToDescriptor
[identity] = resource;
1771
this.
identityToDescriptor
[identity] = resource;
1853
this.
identityToDescriptor
.TryGetValue(descriptor.Identity, out existing);
1871
this.
identityToDescriptor
.Add(descriptor.Identity, descriptor);
2115
if ((null != this.
identityToDescriptor
) &&
2116
this.
identityToDescriptor
.TryGetValue(resourceUri, out resource))
2641
this.
identityToDescriptor
.TryGetValue(resource.Identity, out existing) &&
2644
bool removed = this.
identityToDescriptor
.Remove(resource.Identity);
3119
Debug.Assert((null != this.
identityToDescriptor
) && this.
identityToDescriptor
.ContainsKey(entry.Identity), "should have identity tracked");
3570
if (null == this.
identityToDescriptor
)