private static List <LögEntry> ReadLögEntries() { var path = Lögger.GetPath(); var rows = File.ReadAllLines(path); return(rows.Select(LögEntry.Deserialize).ToList()); }
public SnifferAppContext() { Application.ApplicationExit += OnApplicationExit; InitializeComponent(); _trayIcon.Visible = true; _lög = new Lögger(); _sniffer = new Sniffer(_lög); _lög.Lög(new LögEntry { Locked = false, Message = "Service started", Timestamp = DateTime.Now }); _sniffer.StartSniffing(); }
public Sniffer(Lögger lög) { _lög = lög; }