Example #1
0
        public void Dispose()
        {
            _behaviours.Dispose();

            _behaviours     = null;
            _preProcessors  = null;
            _processor      = null;
            _postProcessors = null;
        }
Example #2
0
            public Closure(CommandBehaviours <TCommand> context, TCommand command, CancellationToken cancellationToken)
            {
                _context           = context;
                _command           = command;
                _cancellationToken = cancellationToken;

                _next = Execute;

                _position = 0;
            }
Example #3
0
 public CommandPipeline(
     ICommandBehaviour <TCommand>[] behaviours,
     ICommandPreProcessor <TCommand>[] preProcessors,
     ICommandProcessor <TCommand> processor,
     ICommandPostProcessor <TCommand>[] postProcessors)
 {
     _behaviours     = new CommandBehaviours <TCommand>(this, behaviours);
     _preProcessors  = preProcessors;
     _processor      = processor;
     _postProcessors = postProcessors;
 }