using System; using System.Collections.Generic; using System.Dynamic; using Newtonsoft.Json; namespace KGdev.BI3D.Revit.Addin.MainWindow.External.Browser { internal class BrowserFunctions { public BrowserFunctions(Queue callQueue) { this.callQueue = callQueue; } public void Execute(ExpandoObject obj) { string text = JsonConvert.SerializeObject(obj); this.callQueue.Enqueue("execute:" + text); } private Queue callQueue; } }