diff --git a/Src/Control/internal/PipeAndFilterControl.cs b/Src/Control/internal/PipeAndFilterControl.cs index a638eee..fe10412 100644 --- a/Src/Control/internal/PipeAndFilterControl.cs +++ b/Src/Control/internal/PipeAndFilterControl.cs @@ -298,12 +298,6 @@ private async Task ExecutePipesAfter() //execute after handler if (!IsEnd) { - string? aliasprev = null; - if (!string.IsNullOrEmpty(_prevPipe)) - { - aliasprev = _parameters.IdToAlias[_prevPipe]; - }; - string? aliascur = _parameters.IdToAlias[_currentPipe!]; var evt = new EventPipe( _cid, _logger, @@ -311,7 +305,7 @@ private async Task ExecutePipesAfter() _savedvalues.ToImmutableDictionary(), _currentPipe!, _parameters.Pipes[_currentPipeIndex].HandlerAfter!.Id, - aliascur, + _parameters.IdToAlias[_currentPipe!], _parameters.IdToAlias[_parameters.Pipes[_currentPipeIndex].HandlerAfter!.Id]); await _parameters.Pipes[_currentPipeIndex].HandlerAfter!.Handler(evt, _pipects!.Token); sta = HandlerStatus.Completed;