Exemple #1
0
 public Listener(State state)
 {
     Thread = new Thread(new ThreadStart(MainLoop));
     Thread.SetApartmentState(ApartmentState.STA);
     Thread.Start();
     State   = state;
     Handler = new StateRpcHandler(State);
 }
Exemple #2
0
 public Listener(State state)
 {
     Thread = new Thread(new ThreadStart(MainLoop));
     Thread.SetApartmentState(ApartmentState.STA);
     Thread.Start();
     State = state;
     Handler = new StateRpcHandler(State);
 }