Beispiel #1
0
        public IChainHandler SetNext(IChainHandler handler)
        {
            this._nextHandler = handler;

            // Возврат обработчика отсюда позволит связать обработчики простым
            // способом, вот так:
            // monkey.SetNext(squirrel).SetNext(dog);
            return(handler);
        }
 public StartHandler(IChainHandler handler) : base(handler)
 {
 }
Beispiel #3
0
 public TestChainHandler(IChainHandler <int> successor)
     : base(successor)
 {
 }
Beispiel #4
0
 public void SetNextChain(IChainHandler nextChainHandler)
 {
     _nextChain = nextChainHandler;
 }
 public StopHandler(IChainHandler handler) : base(handler)
 {
 }
Beispiel #6
0
 protected LoggedChainHandler(IChainHandler <T> successor, ILogger logger)
 {
     _successor = successor;
     _logger    = logger;
 }
 protected ChainHandler(IChainHandler <T> successor)
 {
     _successor = successor;
 }
Beispiel #8
0
 public void RegisterNext(IChainHandler next)
 {
     this.next = next;
 }
Beispiel #9
0
 public void ConfigurHandler(IChainHandler handler)
 {
     this.handler = handler;
 }