Init() public méthode

public Init ( string processname, string processargs ) : void
processname string
processargs string
Résultat void
Exemple #1
0
 static void Main(string[] args)
 {
     System.Diagnostics.Trace.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(Console.Out));
     System.Diagnostics.Trace.AutoFlush = true;
     Transport transport = new Transport();
     transport.Init("/usr/bin/python", "/home/pi/YodiwoDev/imageclient.py");
     RaspberryNode raspberrynode = new RaspberryNode(transport);
     raspberrynode.Start();
     while (true)
     {
         Task.Delay(500).Wait();
     }
 }
Exemple #2
0
        static void Main(string[] args)
        {
            System.Diagnostics.Trace.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(Console.Out));
            System.Diagnostics.Trace.AutoFlush = true;
            Transport transport = new Transport();

            transport.Init("/usr/bin/python", "/home/pi/YodiwoDev/imageclient.py");
            RaspberryNode raspberrynode = new RaspberryNode(transport);

            raspberrynode.Start();
            while (true)
            {
                Task.Delay(500).Wait();
            }
        }