Пример #1
0
        bool disposedValue = false; // To detect redundant calls

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    client = null;
                }

                // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below.
                // TODO: set large fields to null.

                disposedValue = true;
            }
        }
Пример #2
0
        static void Main(string[] args)
        {
            var client = new DebugInterfaceClient("http://127.0.0.1:9001/DebugInterface");

            var names = client.GetVariableNames();

            foreach (var name in names)
            {
                Console.Write(name);
                var value = client.GetVariableValue(name);
                Console.WriteLine($" : {value}");
            }

            Console.WriteLine("\r\n----------------------");
            Console.WriteLine("any key to exit");
            Console.ReadLine();
        }
Пример #3
0
 /// <summary>
 /// Creates the Engine.
 /// </summary>
 /// <param name="url">Set this value if the service has a different Url entry point</param>
 public DebugInterfaceEngine(string url = "http://localhost:9001/DebugInterface")
 {
     client = new DebugInterfaceClient(url);
 }