Beispiel #1
0
 public void initialize()
 {
     stream = new MemoryStream(2048);
     adapter = new Adapter(0);
     adapter.Start();
     while (!adapter.Running) Thread.Sleep(10);
 }
Beispiel #2
0
 /// <summary>
 /// Initialize the service - do things that could fail.
 /// </summary>
 public void Initialize()
 {
     if (winService)
     {
         Console.WriteLine($"  ServiceName:   {ServiceName}");
     }
     Console.WriteLine($"  SHDR Port:     {Port}");
     Console.WriteLine();
     // make our MTConnect adapter to report our state on SHDR
     adapter = new MTConnect.Adapter(Port);
     Console.Out.Flush();
 }
 public CuttingToolForm(Adapter adapter)
 {
     InitializeComponent();
     mAdapter = adapter;
 }