1 write to _appDomainKeyHash
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (1)
141
_appDomainKeyHash
= new Dictionary<string, int>(); // Dictionary stores the Start/Stop refcount per AppDomain for this container.
17 references to _appDomainKeyHash
System.Data (17)
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (17)
267
lock (
_appDomainKeyHash
) {
268
if (
_appDomainKeyHash
.ContainsKey(appDomainKey)) { // Do nothing if AppDomain did not call Start!
270
int value =
_appDomainKeyHash
[appDomainKey];
283
Debug.Assert(!
_appDomainKeyHash
.ContainsKey(appDomainKey), "Key not removed after AppDomainUnload!");
285
if (
_appDomainKeyHash
.ContainsKey(appDomainKey)) {
286
Bid.NotificationsTrace("<sc.SqlConnectionContainer.AppDomainUnload|DEP|ERR> ERROR - after the Stop() loop, _appDomainKeyHash for AppDomainKey: '%ls' entry not removed from hash. Count: %d'\n", appDomainKey,
_appDomainKeyHash
[appDomainKey]);
485
lock (
_appDomainKeyHash
) {
486
if (
_appDomainKeyHash
.ContainsKey(appDomainKey)) {
487
_appDomainKeyHash
[appDomainKey] =
_appDomainKeyHash
[appDomainKey] + 1;
488
Bid.NotificationsTrace("<sc.SqlConnectionContainer.IncrementStartCount|DEP> _appDomainKeyHash contained AppDomainKey: '%ls', incremented count: '%d'.\n", appDomainKey,
_appDomainKeyHash
[appDomainKey]);
491
_appDomainKeyHash
[appDomainKey] = 1;
754
lock (
_appDomainKeyHash
) {
755
if (
_appDomainKeyHash
.ContainsKey(appDomainKey)) { // Do nothing if AppDomain did not call Start!
756
int value =
_appDomainKeyHash
[appDomainKey];
762
_appDomainKeyHash
[appDomainKey] = value - 1;
770
_appDomainKeyHash
.Remove(appDomainKey);