static void Main(string[] args) { Log.Logger = SextantHost.DefaultLoggingConfiguration("TestHarness").WriteTo.Console().CreateLogger(); SextantHost sextant = new SextantHost(basePath: Environment.CurrentDirectory, pluginName: "TestHarness", configureLogging: false); sextant.Initialize(); string input; while (true) { input = Console.ReadLine(); if (input.StartsWith("q")) { break; } string[] parts = input.Split(' '); if (parts.Length > 1) { // Create a journal entry sextant.HandleDebug(parts); } else { sextant.Handle(input); } } }
public static void VA_Invoke1(dynamic vaProxy) { string context = vaProxy.Context; var payload = new Dictionary <string, object> { { "intValue", (object)vaProxy.GetInt("intValue") } }; _host?.Handle(context, payload); }
public static void VA_Invoke1(dynamic vaProxy) { string context = vaProxy.Context; _host?.Handle(context); }