//init
 public ReleaseFromTempStorageCommand(EntityContext entityContext, GeneratorSetup setup,
                                      IFlushCandidatesRegistry flushCandidatesRegistry)
 {
     _entityContext           = entityContext;
     _setup                   = setup;
     _flushCandidatesRegistry = flushCandidatesRegistry;
 }
 //init
 public CheckFlushRequiredCommand(EntityContext entityContext, GeneratorSetup setup,
                                  IFlushCandidatesRegistry flushCandidatesRegistry)
 {
     _entityContext           = entityContext;
     _setup                   = setup;
     _flushCandidatesRegistry = flushCandidatesRegistry;
 }
Beispiel #3
0
 //init
 public FlushCommand(EntityContext entityContext, GeneratorSetup setup,
                     IFlushCandidatesRegistry flushCandidatesRegistry)
 {
     EntityContext            = entityContext;
     _setup                   = setup;
     _flushCandidatesRegistry = flushCandidatesRegistry;
 }
 //init
 public CompleteNextNodeFinder(GeneratorSetup generatorSetup,
                               IFlushCandidatesRegistry flushCandidatesRegistry,
                               IProgressState progressState)
 {
     _generatorSetup          = generatorSetup;
     _flushCandidatesRegistry = flushCandidatesRegistry;
     _progressState           = progressState;
 }
 //init
 public SubsetNodeFinder(List <Type> entitiesSubset, GeneratorSetup generatorSetup,
                         IFlushCandidatesRegistry flushCandidatesRegistry,
                         IProgressState progressState)
     : base(generatorSetup, flushCandidatesRegistry, progressState)
 {
     if (entitiesSubset == null)
     {
         throw new ArgumentNullException(nameof(entitiesSubset));
     }
     _entitiesSubset = entitiesSubset;
 }
Beispiel #6
0
        //init
        public virtual void Setup(GeneratorSetup generatorSetup,
                                  Dictionary <Type, EntityContext> entityContexts)
        {
            _commandsQueue = new ConcurrentQueue <ICommand>();

            _entityContexts = entityContexts;
            _generatorSetup = generatorSetup;

            ProgressState            = new CompleteProgressState(entityContexts);
            _flushCandidatesRegistry = new CompleteFlushCandidatesRegistry(
                generatorSetup, entityContexts, ProgressState);
            _nextNodeFinder = new CompleteNextNodeFinder(
                generatorSetup, _flushCandidatesRegistry, ProgressState);
            _requiredQueueBuilder = new CompleteRequiredQueueBuilder(
                generatorSetup, entityContexts, _nextNodeFinder);
        }