15 references to SingletonInstance
System.Data (15)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (1)
2995
SqlDependency dependency = SqlDependencyPerAppDomainDispatcher.
SingletonInstance
.LookupDependencyEntry(notifyContext);
fx\src\data\System\Data\SqlClient\SqlDependency.cs (5)
303
SqlDependencyPerAppDomainDispatcher.
SingletonInstance
.AddDependencyEntry(this); // Add dep to hashtable with Id.
625
SqlDependencyPerAppDomainDispatcher.
SingletonInstance
,
655
SqlDependencyPerAppDomainDispatcher.
SingletonInstance
);
1018
string idString = SqlDependencyPerAppDomainDispatcher.
SingletonInstance
.AddCommandEntry(commandHash, this); // Add to map.
1088
SqlDependencyPerAppDomainDispatcher.
SingletonInstance
.StartTimer(this);
fx\src\data\System\Data\SqlClient\SqlDependencyUtils.cs (9)
503
lock (
SingletonInstance
) {
504
if (0 ==
SingletonInstance
._dependencyIdToDependencyHash.Count) {
509
if (
SingletonInstance
._nextTimeout > DateTime.UtcNow) {
519
dependencies = new SqlDependency[
SingletonInstance
._dependencyIdToDependencyHash.Count];
520
SingletonInstance
._dependencyIdToDependencyHash.Values.CopyTo(dependencies, 0);
556
lock (
SingletonInstance
) {
559
SingletonInstance
._dependencyIdToDependencyHash.Remove(dependencies[i].Id);
562
if (newNextTimeout <
SingletonInstance
._nextTimeout) {
563
SingletonInstance
._nextTimeout = newNextTimeout; // We're inside the lock so ok to update.