1 instantiation of SqlDependency
System.Web (1)
Cache\SqlCacheDependency.cs (1)
183
_sqlYukonDep = new
SqlDependency
();
56 references to SqlDependency
System.Data (53)
fx\src\data\System\Data\Common\System.Data_BID.cs (20)
120
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData) {
129
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData) {
138
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData) {
147
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData) {
156
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData) {
165
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData) {
174
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData) {
183
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData) {
192
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData)
198
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData)
204
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData)
210
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData)
216
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData)
222
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData)
228
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData)
234
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData)
240
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData)
246
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData)
252
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData)
258
if ((modFlags & System.Data.SqlClient.
SqlDependency
.NotificationsTracePoints) != 0 && modID != NoData)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (6)
67
internal
SqlDependency
_sqlDep;
2995
SqlDependency
dependency = SqlDependencyPerAppDomainDispatcher.SingletonInstance.LookupDependencyEntry(notifyContext);
3022
SqlDependency
.IdentityUserNamePair identityUserName = null;
3027
identityUserName = new
SqlDependency
.IdentityUserNamePair(internalConnection.Identity, null);
3030
identityUserName = new
SqlDependency
.IdentityUserNamePair(null, internalConnection.ConnectionOptions.UserID);
3033
Notification.Options =
SqlDependency
.GetDefaultComposedOptions(_activeConnection.DataSource,
fx\src\data\System\Data\SqlClient\SqlDependency.cs (2)
167
private
SqlDependency
_dependency;
172
internal EventContextPair(OnChangeEventHandler eventHandler,
SqlDependency
dependency) {
fx\src\data\System\Data\SqlClient\SqlDependencyUtils.cs (25)
37
private Dictionary<string,
SqlDependency
> _dependencyIdToDependencyHash;
41
sealed class DependencyList : List<
SqlDependency
> {
100
_dependencyIdToDependencyHash = new Dictionary<string,
SqlDependency
>();
133
SqlDependencyProcessDispatcher dispatcher =
SqlDependency
.ProcessDispatcher;
135
dispatcher.QueueAppDomainUnloading(
SqlDependency
.AppDomainKey);
148
internal void AddDependencyEntry(
SqlDependency
dep) {
162
internal string AddCommandEntry(string commandHash,
SqlDependency
dep) {
202
SqlDependency
.AppDomainKey, // must be first
236
List<
SqlDependency
> dependencyList = null;
244
foreach (
SqlDependency
dependency in dependencyList) {
259
foreach (
SqlDependency
dependency in dependencyList) {
287
List<
SqlDependency
> dependencies = new List<
SqlDependency
>();
290
foreach (KeyValuePair<string,
SqlDependency
> entry in _dependencyIdToDependencyHash) {
291
SqlDependency
dependency = entry.Value;
297
foreach (
SqlDependency
dependency in dependencies) { // Iterate over resulting list removing from our hashes.
306
foreach (
SqlDependency
dependency in dependencies) { // Iterate and invalidate.
327
internal
SqlDependency
LookupDependencyEntry(string id) {
338
SqlDependency
entry = null;
383
private List<
SqlDependency
> LookupCommandEntryWithRemove(string notificationId) {
416
private void RemoveDependencyFromCommandToDependenciesHash(
SqlDependency
dependency) {
463
internal void StartTimer(
SqlDependency
dep) {
496
Bid.NotificationsScopeEnter(out hscp, "<sc.SqlDependencyPerAppDomainDispatcher.TimeoutTimerCallback|DEP> AppDomainKey: '%ls'",
SqlDependency
.AppDomainKey);
498
SqlDependency
[] dependencies;
519
dependencies = new
SqlDependency
[SingletonInstance._dependencyIdToDependencyHash.Count];
System.Runtime.Caching (2)
System\Caching\SqlChangeMonitor.cs (2)
10
private
SqlDependency
_sqlDependency;
16
public SqlChangeMonitor(
SqlDependency
dependency) {
System.Web (1)
Cache\SqlCacheDependency.cs (1)
48
SqlDependency
_sqlYukonDep; // SqlDependency for Yukon