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); }
/// <summary> /// Initializes a new instance class. /// </summary> public XMediator() : base("XMediator") { observer = new Dictionary <string, List <IXMediator> >(); log = LogWraper.GetLog <XMediator>(); }
public SendWcfCommandLogEx(string serviceAddress, LogWraper logWraper) : base(serviceAddress) { _log = logWraper; }