public void OnExecute(CommandEventArgs e) { if (_commandService == null) { _commandService = e.GetService <IAnkhCommandService>(); } if (_fileCache == null) { _fileCache = e.GetService <SvnStatusCache>(typeof(ISvnStatusCache)); } _commandService.TockCommand(e.Command); if (e.Command == AnkhCommand.SvnCacheFinishTasks) { _fileCache.OnCleanup(); } else { _fileCache.BroadcastChanges(); } }
public SvnManager() { _statusCache = new SvnStatusCache(false, this); _svnClient = new SvnClient(); }