public CommDuplex(string _name, string _pipe_name_client, string _pipe_name_server, string _authentication, LocalLogger _logger) { this.LoggingService = _logger; this.Name = _name; this.pipe_name_client = _pipe_name_client; this.pipe_name_server = _pipe_name_server; this.authentication = _authentication; this.stop = true; this.stop_server = true; this.LoggingService.LogCommUnit("Started CommUnit {0}", this.Name); }
public void MergeLast(LocalLogger _other_logger) { if (_other_logger == null) { return; } try { LoggerEntry last = _other_logger.entries.Last(); this.entries.Add(last); this.NewEntryToDisplay = true; this.CleanUp(); } catch { // it does not matter, just carry on } }