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();
 }
 private PushSqlDependency(NotifierEntity notifierEntity, Action <String> dispatcher)
 {
     this.dispatcher       = dispatcher;
     sqlDependencyNotifier = new SqlDependencyRegister(notifierEntity);
     sqlDependencyNotifier.SqlNotification += OnSqlDependencyNotifierResultChanged;
 }