/*--------------------------------------------------------------------------------------------*/ 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); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ 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) + "]"); } }