Exemplo n.º 1
0
        public void AddCreateListener(String whereClause, ObjectCreated <T> listener)
        {
            DataSubscription subscription = new DataSubscription(RTDataEvents.created, tableName, CreateCallback(listener))
                                            .WithWhere(whereClause);

            AddEventListener(subscription);
        }
Exemplo n.º 2
0
        public void AddBulkDeleteListener(String whereClause, MultipleObjectsDeleted listener)
        {
            DataSubscription subscription = new DataSubscription(RTDataEvents.bulk_deleted, tableName, CreateCallback(listener, typeof(BulkEvent)))
                                            .WithWhere(whereClause);

            AddEventListener(subscription);
        }
Exemplo 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);
        }
Exemplo n.º 4
0
        public void AddUpdateListener(ObjectUpdated <T> listener)
        {
            DataSubscription subscription = new DataSubscription(RTDataEvents.updated, tableName, CreateCallback(listener));

            AddEventListener(subscription);
        }
Exemplo n.º 5
0
        public void AddBulkUpdateListener(MultipleObjectsUpdated listener)
        {
            DataSubscription subscription = new DataSubscription(RTDataEvents.bulk_updated, tableName, CreateCallback(listener, typeof(BulkEvent)));

            AddEventListener(subscription);
        }