Ejemplo n.º 1
0
 private void RemoveListeners(RTDataEvents dataEvent, Object listener)
 {
     CheckCallback(listener);
     RemoveEventListener((subscriptionToCheck) =>
     {
         return(IsEventSubscription(subscriptionToCheck, dataEvent) &&
                subscriptionToCheck.Callback.UsersCallback.Equals(listener));
     });
 }
Ejemplo n.º 2
0
 private void RemoveListeners(RTDataEvents dataEvent, String whereClause)
 {
     CheckWhereClause(whereClause);
     RemoveEventListener((subscriptionToCheck) =>
     {
         return(IsEventSubscription(subscriptionToCheck, dataEvent) &&
                whereClause.Equals(((DataSubscription)subscriptionToCheck).WhereClause));
     });
 }
Ejemplo n.º 3
0
        private Boolean IsEventSubscription(RTSubscription subscription, RTDataEvents dataEvent)
        {
            if (!(subscription is DataSubscription))
            {
                return(false);
            }

            DataSubscription dataSubscription = (DataSubscription)subscription;

            return(dataSubscription.SubscriptionName == SubscriptionNames.OBJECTS_CHANGES && dataSubscription.Event == dataEvent);
        }
Ejemplo n.º 4
0
 private void RemoveListeners(RTDataEvents dataEvent, String whereClause, Object listener)
 {
     CheckCallback(listener);
     CheckWhereClause(whereClause);
     RemoveEventListener((subscriptionToCheck) =>
     {
         return(IsEventSubscription(subscriptionToCheck, dataEvent) &&
                subscriptionToCheck.Callback.UsersCallback.Equals(listener) &&
                whereClause.Equals(((DataSubscription)subscriptionToCheck).WhereClause));
     });
 }
Ejemplo n.º 5
0
 private void RemoveListeners(RTDataEvents dataEvent)
 {
     RemoveEventListener((subscriptionToCheck) => { return(IsEventSubscription(subscriptionToCheck, dataEvent)); });
 }
Ejemplo n.º 6
0
 public DataSubscription(RTDataEvents rtDataEvent, String tableName, IRTCallback callback) : base(SubscriptionNames.OBJECTS_CHANGES, callback)
 {
     PutOption("event", Enum.GetName(typeof(RTDataEvents), rtDataEvent));
     PutOption("tableName", tableName);
 }