Example #1
0
        private void EventRemove(Instance inst)
        {
            var eArg = new InstanceCollectionEventArgs()
            {
                Reference = inst,
                Type      = InstanceCollectionEventType.RemoveObject
            };

            OnObjectRemove?.Invoke(eArg);
            OnGeneralizedEvent?.Invoke(eArg);
        }
Example #2
0
        private void EventAccess(Instance inst)
        {
            var eArg = new InstanceCollectionEventArgs()
            {
                Reference = inst,
                Type      = InstanceCollectionEventType.AccessedObject
            };

            OnObjectAccess?.Invoke(eArg);
            OnGeneralizedEvent?.Invoke(eArg);
        }
Example #3
0
        private void EventAdd(Instance inst)
        {
            if (!_allowEvent)
            {
                return;
            }
            var eArg = new InstanceCollectionEventArgs()
            {
                Reference = inst,
                Type      = InstanceCollectionEventType.AddObject
            };

            OnObjectAdd?.Invoke(eArg);
            OnGeneralizedEvent?.Invoke(eArg);
        }