//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public static IWeaverTitanGraph TitanGraph <T>(this T pInstance) where T : IWeaverInstance { var path = new WeaverPath(pInstance.Config, new WeaverQuery()); var g = new WeaverTitanGraph(); path.AddItem(g); return(g); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ private IWeaverPath NewPath(int pItemsToAdd = 0) { var p = new WeaverPath(WeavInst.Config, new WeaverQuery()); for (int i = 0; i < pItemsToAdd; ++i) { p.AddItem(new Candy()); } return(p); }
/*--------------------------------------------------------------------------------------------*/ public T FromVar <T>(IWeaverVarAlias <T> pAlias) where T : IWeaverElement, new() { var sc = new WeaverStepCustom(pAlias.Name); var path = new WeaverPath(Config, new WeaverQuery()); path.AddItem(sc); return(new T { Path = path }); }