public static PageContext TransformToPageContext(AchieveRequest request, PageScheme scheme) { var result = new PageContext(); result.Id = request.Id; result.Parameters = request.Parameters; result.UserToken = request.UserToken; EvaluatePage(request, scheme, result); return result; }
private static void EvaluatePage(AchieveRequest request, PageScheme scheme, PageContext context) { var expression = new PageExpression(); var evaluate = new PageEvaluataion(); expression.Id = request.Id; expression.InstanceId = request.InstanceId; expression.Meta = scheme.Meta.Clone() as PageMeta; evaluate.InputParameters = request.Parameters; evaluate.InputUserName = request.UserName; evaluate.InputUserToken = request.UserToken; evaluate.PageParameters = EvaluateParameters(request, scheme); EvaluatePageControl(scheme, expression, evaluate); context.Expression = expression; context.Evaluataion = evaluate; }
public void AddPageContext(PageContext context) { m_PageContexts.TryAdd(context.Key, context); }