コード例 #1
0
        internal void BindToContext(AActionContext context)
        {
            Context = context;

            OnBindToContext();
            if (Applicable && BoundToContext != null)
            {
                BoundToContext();
            }

            if (Applicable && ChildrenIfApplicable != null)
            {
                Children.AddRange(ChildrenIfApplicable);
            }

            // Then bind children
            foreach (var child in Children)
            {
                child.Parent = this;
                child.BindToContext(Context);
            }
        }
コード例 #2
0
 public void BindToContext(AActionContext context)
 {
     Context = context;
     OnBindToContext();
 }