Example #1
0
        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);
                }
            }
        }
Example #2
0
        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);
        }
Example #3
0
        public static void VA_Invoke1(dynamic vaProxy)
        {
            string context = vaProxy.Context;

            _host?.Handle(context);
        }