public Tracker(Persistence.IPersister persister, Persistence.Finder.IItemFinder find, N2.Web.IUrlParser urlParser, N2.Web.IErrorHandler errorHandler) { this.persister = persister; this.find = find; this.urlParser = urlParser; this.errorHandler = errorHandler; }
public Tracker(Persistence.IPersister persister, Persistence.Finder.IItemFinder find, N2.Web.IUrlParser urlParser, ConnectionMonitor connections, N2.Web.IErrorNotifier errorHandler) { this.persister = persister; this.find = find; this.urlParser = urlParser; this.errorHandler = errorHandler; connections.Online += delegate { persister.ItemSaving += persister_ItemSaving; }; connections.Offline += delegate { persister.ItemSaving -= persister_ItemSaving; }; }