public ChangeMaster(NetworkContext netContext) : base(netContext) { ChangeWatcher.Created += FileCreated; ChangeWatcher.Deleted += FileDeleted; ChangeWatcher.Modified += FileModified; ChangeWatcher.MovedRenamed += FileMovedRenamed; ChangeWatcher.Replaced += FileReplaced; }
public NewFileModule(NetworkModel network) { network = new NetworkModel(@"C:\Test2"); network.GroupList.Add(new GroupModel(new[] {"Fol1", "Fol2"})); _context = new NetworkContext(this, network, network.MainPath); // tableOverseer = new TableOverseer(Network); LoginEnded(); // logowanie arbitra: // tworzy liste plikow // czeka na innych // hash all files // send list to arbiter // arbiter: merge lists: Arbiter + User // send changes to all ( User - Arbiter) // send to user (Arbiter - User) }