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); } }
public void BindToContext(AActionContext context) { Context = context; OnBindToContext(); }