コード例 #1
0
        private static List <LögEntry> ReadLögEntries()
        {
            var path = Lögger.GetPath();
            var rows = File.ReadAllLines(path);

            return(rows.Select(LögEntry.Deserialize).ToList());
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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();
        }
コード例 #4
0
ファイル: Sniffer.cs プロジェクト: murgo/locksniffer
 public Sniffer(Lögger lög)
 {
     _lög = lög;
 }
コード例 #5
0
 public Sniffer(Lögger lög)
 {
     _lög = lög;
 }