Ejemplo n.º 1
0
 public static void EnsureBus(int busId)
 {
     _dataBus               = new IpcWrapper(WorkingMode.DataClient, busId);
     _signalBus             = new IpcWrapper(WorkingMode.SignalClient, busId);
     _signalBus.OnReceived += GlobalSignalHandler;
     _isEnsured             = true;
 }
Ejemplo n.º 2
0
 public BusTuple(int busId, OnDataReceivedDelegate datRecv, OnDataReceivedDelegate sigRecv)
 {
     Data               = new IpcWrapper(WorkingMode.DataServer, busId);
     Signal             = new IpcWrapper(WorkingMode.SignalServer, busId);
     Data.OnReceived   += datRecv;
     Signal.OnReceived += sigRecv;
 }
Ejemplo n.º 3
0
            public void Dispose()
            {
                try { Data?.Dispose(); } catch { /* ignored*/ }
                try { Signal?.Dispose(); } catch { /* ignored*/ }

                Data   = null;
                Signal = null;
            }