public void PushEvent(AasxPluginResultEventBase evt) { if (evt == null || this.eventStack == null) { return; } lock (this.eventStack) { this.eventStack.Add(evt); } }
public AasxPluginResultEventBase PopEvent() { // result AasxPluginResultEventBase evt = null; // get? lock (this.eventStack) { if (this.eventStack.Count > 0) { evt = this.eventStack[0]; this.eventStack.RemoveAt(0); } } // return if found or not .. return(evt); }