コード例 #1
0
        /*--------------------------------------------------------------------------------------------*/
        public static FabTravStep ToFabTravStep(ITravRule pRule)
        {
            var s = new FabTravStep();

            s.Name   = pRule.Step.Command;
            s.Uri    = "/" + pRule.Step.Command;
            s.Return = (pRule.ToType == null ? null : pRule.ToType.Name);
            return(s);
        }
コード例 #2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        private void BuildPath(string pPath)
        {
            vPathData = new TravPathData(pPath, vOpCtx.Auth.ActiveMemberId);
            vPath     = new TravPath(vPathData);

            ITravPathItem tps  = vPath.GetNextStep();
            ITravRule     rule = null;

            while (tps != null)
            {
                rule = FindRuleForStep(tps);
                rule.Step.ConsumePath(vPath, rule.ToType);
                tps = vPath.GetNextStep();
            }

            if (rule == null || !rule.Step.EndsWithRangeFilter)
            {
                vPathData.AddScript("[0.." + (TravStepTake.Maximum - 1) + "]");
            }
        }