Example #1
0
        public Hasher()
        {
            this.contextResolutionCache = new CachedHash <Tuple <IIncludePathContext, string, ModPart>, BuildObject>(
                delegate(Tuple <IIncludePathContext, string, ModPart> key)
            {
                return(key.Item1.search(key.Item2, key.Item3));
            });

            this.parsedIncludesCache = new CachedHash <Tuple <IIncludePathContext, BuildObject>, List <BeatIncludes.LabeledInclude> >(
                delegate(Tuple <IIncludePathContext, BuildObject> key)
            {
                return(BeatIncludes.parseLabeledIncludes(key.Item1, key.Item2));
            });
        }
Example #2
0
        public Hasher()
        {
            outputToVerbMap = new Dictionary <BuildObject, IVerb>();

            _contextResolutionCache = new CachedHash <Tuple <IIncludePathContext, string, ModPart>, BuildObject>(
                delegate(Tuple <IIncludePathContext, string, ModPart> key) {
                return(key.Item1.search(key.Item2, key.Item3));
            });

            _parsedIncludesCache = new CachedHash <Tuple <IIncludePathContext, BuildObject>, List <BeatIncludes.LabeledInclude> >(
                delegate(Tuple <IIncludePathContext, BuildObject> key)
            {
                return(BeatIncludes.parseLabeledIncludes(key.Item1, key.Item2));
            });
        }
 public FetchModuleCache(IIncludePathContext context)
 {
     this.beatIncludes = new BeatIncludes(context);
     this.cache        = new CachedHash <string, BuildObject>(fetchModule);
 }