public TLAutoDeviceSerialPortAsync
 (
     TLAutoDeviceSerialPort tlAutoDeviceSerialPort,
     DeviceCommand <T> deviceCommand,
     CancellationToken?cancelToken,
     string logModuleName = null,
     int timeOutMs        = 4000)
     : base(cancelToken, timeOutMs)
 {
     _tlAutoDeviceSerialPort = tlAutoDeviceSerialPort;
     _tlAutoDeviceSerialPort.DataReceived += TLAutoDeviceSerialPortDataReceived;
     _deviceCommand = deviceCommand;
     _log           = new LogWraper(logModuleName.IsNullOrEmpty() ? "TLAutoDeviceSerialPortAsync" : logModuleName);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance class.
 /// </summary>
 public XMediator()
     : base("XMediator")
 {
     observer = new Dictionary <string, List <IXMediator> >();
     log      = LogWraper.GetLog <XMediator>();
 }
Exemplo n.º 3
0
 public SendWcfCommandLogEx(string serviceAddress, LogWraper logWraper)
     : base(serviceAddress)
 {
     _log = logWraper;
 }