コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 public void AddPageContext(PageContext context)
 {
     m_PageContexts.TryAdd(context.Key, context);
 }