コード例 #1
0
 public FileSystemStorer(RepositoryHierarchy repositoryHierarchy, IEventWriter eventWriter)
 {
     if (repositoryHierarchy == null) throw new ArgumentNullException("repositoryHierarchy");
     if (eventWriter == null) throw new ArgumentNullException("eventWriter");
     _repositoryHierarchy = repositoryHierarchy;
     _eventWriter = eventWriter;
 }
コード例 #2
0
        public FileSystemPersistenceStrategy(RepositoryHierarchy repositoryHierarchy, IEventReaderWriterPair eventReaderWriterPair)
        {
            if (repositoryHierarchy == null) throw new ArgumentNullException("repositoryHierarchy");
            if (eventReaderWriterPair == null) throw new ArgumentNullException("eventReaderWriterPair");

            _storer = new FileSystemStorer(repositoryHierarchy, eventReaderWriterPair.Writer);
            _loader = new FileSystemLoader(repositoryHierarchy, eventReaderWriterPair.Reader);
        }