コード例 #1
0
 public static PushSqlDependency Instance(NotifierEntity notifierEntity, Action <String> dispatcher)
 {
     if (instance == null)
     {
         instance = new PushSqlDependency(notifierEntity, dispatcher);
     }
     return(instance);
 }
コード例 #2
0
 internal SqlDependencyRegister(NotifierEntity notificationEntity)
 {
     this.notificationEntity = notificationEntity;
     RegisterForNotifications();
 }
コード例 #3
0
 private PushSqlDependency(NotifierEntity notifierEntity, Action <String> dispatcher)
 {
     this.dispatcher       = dispatcher;
     sqlDependencyNotifier = new SqlDependencyRegister(notifierEntity);
     sqlDependencyNotifier.SqlNotification += OnSqlDependencyNotifierResultChanged;
 }