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)
267lock (_appDomainKeyHash) { 268if (_appDomainKeyHash.ContainsKey(appDomainKey)) { // Do nothing if AppDomain did not call Start! 270int value = _appDomainKeyHash[appDomainKey]; 283Debug.Assert(!_appDomainKeyHash.ContainsKey(appDomainKey), "Key not removed after AppDomainUnload!"); 285if (_appDomainKeyHash.ContainsKey(appDomainKey)) { 286Bid.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]); 485lock (_appDomainKeyHash) { 486if (_appDomainKeyHash.ContainsKey(appDomainKey)) { 487_appDomainKeyHash[appDomainKey] = _appDomainKeyHash[appDomainKey] + 1; 488Bid.NotificationsTrace("<sc.SqlConnectionContainer.IncrementStartCount|DEP> _appDomainKeyHash contained AppDomainKey: '%ls', incremented count: '%d'.\n", appDomainKey, _appDomainKeyHash[appDomainKey]); 491_appDomainKeyHash[appDomainKey] = 1; 754lock (_appDomainKeyHash) { 755if (_appDomainKeyHash.ContainsKey(appDomainKey)) { // Do nothing if AppDomain did not call Start! 756int value = _appDomainKeyHash[appDomainKey]; 762_appDomainKeyHash[appDomainKey] = value - 1; 770_appDomainKeyHash.Remove(appDomainKey);