using System; using Bridge; using Bridge.Html5; namespace DataExchange.Tests { public class App { private const string InterfaceName = "BrApi0"; private static readonly ExternalDataExchangeApi DxApi; static App() { if (Script.Undefined == (Window.Get(InterfaceName))) Window.Set(InterfaceName, new DummyDataExchangeApi()); DxApi = Window.Get(InterfaceName); } public static void Main() { var dxs = new DataExchangeService(DxApi); var svc = dxs.Create("Svc1Name"); svc.Op0(DateTime.Now); svc.Op1(new Op1Input()); svc.Op2(true); } } }