Example #1
0
        public void PushObject(object instance)
        {
            lock (stackSyncObject) {
                OutputObjects.Push(instance);
            }

            if (OutputNotificationType == NotificationType.Auto)
            {
                OnOutputAvailable();
            }
        }
Example #2
0
        public void PushMultiObjects(IList <object> instances)
        {
            lock (stackSyncObject) {
                foreach (object instance in instances)
                {
                    OutputObjects.Push(instance);
                }
            }

            if (OutputNotificationType == NotificationType.Auto)
            {
                OnOutputAvailable();
            }
        }