Esempio n. 1
0
        private dynamic[] _getNotifications()
        {
            this.isEngineInitialized();
            var events = this.engine.Notifications;

            if (events == null || events.Count == 0)
            {
                return(new dynamic[] { });
            }

            return(events.Select((p) => ReturnHelpers.convertStackItem(p.ToStackItem(new ReferenceCounter()))).ToArray());
        }
Esempio n. 2
0
        private dynamic[] _getLogs()
        {
            this.isEngineInitialized();
            var logs = this.engine.Logs;

            if (logs == null || logs.Count == 0)
            {
                return(new dynamic[] { });
            }

            return(logs.Select((p) => ReturnHelpers.convertLog(p)).ToArray());
        }
Esempio n. 3
0
 private dynamic[] _getResultStack()
 {
     return(this.engine != null?this.engine.ResultStack.Select((StackItem p) => ReturnHelpers.convertStackItem(p)).ToArray() : new dynamic[0]);
 }