public static void ForEachContexts <T>(this IDictContext context, Action <T> callback) where T : class, IContext { TreeHelper.ForEachDescendants <T>(context, callback); }
public static List <T> GetContexts <T>(this IDictContext context) where T : class, IContext { return(TreeHelper.GetDescendants <T>(context)); }
public static T GetAncestor <T>(this IContext context) where T : class, IContext { return(TreeHelper.GetAncestor <T>(context)); }
public static T GetContext <T>(this IDictContext context, string relPath, bool isDebug = false) where T : class, IContext { return(TreeHelper.GetDescendant <T>(context, relPath, isDebug)); }
public static T GetOrNewContext <T>(this IDictContext context, string type, string relPath) where T : class, IContext { return(TreeHelper.GetOrNewDescendant <Items, T>(context, type, relPath)); }
public static IContext GetOrNewContext(this IDictContext context, string type, string relPath) { return(TreeHelper.GetOrNewDescendant <Items, IContext>(context, type, relPath)); }
public static T NewContext <TO, T>(this IDictContext context, string type, string relPath) where TO : class, IDictContext where T : class, IContext { return(TreeHelper.NewDescendant <TO, T>(context, type, relPath)); }
public static T GetOrAddContext <TO, T>(this IDictContext context, string relPath) where TO : class, IDictContext where T : class, IContext { return(TreeHelper.GetOrAddDescendant <TO, T>(context, relPath)); }
public static T AddContext <T>(this IDictContext context, string relPath) where T : class, IContext { return(TreeHelper.AddDescendant <Items, T>(context, relPath)); }
public static string GetAspectPath(IAspect aspect) { return(TreeHelper.GetPath <IAspect>(aspect.Context, aspect)); }
public static string GetContextPath(IContext context) { return(TreeHelper.GetPath <IContext>(_Instance, context)); }