public RouteAction Handle(ICall call)
        {
            if (_config.ShouldCallBase(call))
            {
                return(call
                       .TryCallBase()
                       .Fold(RouteAction.Continue, RouteAction.Return));
            }

            return(RouteAction.Continue());
        }
Exemplo n.º 2
0
        public RouteAction Handle(ICall call)
        {
            if (call == null)
            {
                throw new ArgumentNullException(nameof(call));
            }

            if (_config.ShouldCallBase(call))
            {
                return(call
                       .TryCallBase()
                       .Fold(RouteAction.Continue, RouteAction.Return));
            }

            return(RouteAction.Continue());
        }