Ejemplo n.º 1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        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);
        }
Ejemplo n.º 2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        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);
        }
Ejemplo n.º 3
0
        /*--------------------------------------------------------------------------------------------*/
        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
            });
        }