/// <summary> /// Create new writer instance /// </summary> /// <param name="targetFolder"> /// The target of the writer (subtree root). /// </param> internal RepositoryWriter(IFolder targetFolder) { _itemAddedEvent = new FastSmartWeakEvent <EventHandler <Events.DataItemAddedEventArgs> >(); _repoFolder = targetFolder; _directWritersByRelativePath = new Dictionary <string, DirectSingleFolderWriter>(); _directWritersByFolderKey = new Dictionary <string, DirectSingleFolderWriter>(); _trackUnsavedItems = true; //this.DesiredFileSize = Constants.DefaultDataItemsPerFile; // must initialise active router this.DataRouter = null; _transactionManager = new LongSlaveTransactionManager(Folder.Repository, null); }
/// <summary> /// Create new instance /// </summary> internal RepositoryReader(IRepository repository) { Repository = repository; _seekStatusEvent = new FastSmartWeakEvent <EventHandler <PositionRestoreStatusEventArgs> >(); _readers = new Dictionary <string, RepositoryFolderReader>(); _onlineQueue = new LinkedList <RepositoryFolderReader>(); _offlineQueue = new LinkedList <RepositoryFolderReader>(); _exhaustedReaders = new LinkedList <RepositoryFolderReader>(); _onlineReaderComparer = new ReaderComparerByCurrentItem(); _offlineReaderComparer = new ReaderComparerByNextFile(); _position = new ReadingPosition(); EnumerationDirection defaultDirection = EnumerationDirection.Forwards; ChangeDirection(defaultDirection, true); Reset(); }
public CsvExporter() { sync = new object(); allItemLoadedFastSmartWeakEvent = new FastSmartWeakEvent <EventHandler <CounterEventArg> >(); }
public ClipboardHelper() { itemLoadedFastSmartWeakEvent = new FastSmartWeakEvent <EventHandler <T> >(); allItemLoadedFastSmartWeakEvent = new FastSmartWeakEvent <EventHandler>(); }