Esempio n. 1
0
        static void Main(string[] args)
        {
            var manager = new ModelManager();
            manager.RefreshHosts();
            //manager.StartListening();

            string path = @"D:\aa.txt";
            if(File.Exists(path))
                manager.NewChecksum(path);
            System.Console.ReadLine();
        }
Esempio n. 2
0
 private void Creator()
 {
     Manager = new ModelManager();
     Manager.OnDataUpdate += OnDataChanged;
     Manager.OnNewPeer += AddPeerToList;
     SetLocalPeer();
 }