Exemple #1
0
 public override string AddContent(string sourcePath)
 {
     if (!FileMap.ContainsKey(sourcePath))
     {
         string destFileName = GenerateContentFileName(sourcePath);
         AddContent(sourcePath, destFileName);
         return(sourcePath);
     }
     else
     {
         return(sourcePath);
     }
 }
Exemple #2
0
 public override string AddContent(string sourcePath)
 {
     if (!FileMap.ContainsKey(sourcePath))
     {
         string destFileName = GenerateContentFileName(sourcePath);
         AddContent(sourcePath, destFileName);
         return(Path.Combine(ExecutionContext.PACKAGE_CONTENT_TAG, destFileName));
     }
     else
     {
         return(Path.Combine(ExecutionContext.PACKAGE_CONTENT_TAG, FileMap[sourcePath]));
     }
 }
Exemple #3
0
        public override string AddContent(string sourcePath)
        {
            string result;

            if (!FileMap.ContainsKey(sourcePath))
            {
                string destFileName = GenerateContentFileName(sourcePath);
                FileMap.Add(sourcePath, destFileName);
                result = destFileName;
            }
            else
            {
                result = FileMap[sourcePath];
            }

            return(Path.Combine(ExecutionContext.PACKAGE_CONTENT_TAG, result));
        }
 public override bool FileExists(string virtualPath)
 {
     return(FileMap.ContainsKey(NormalizeVirtualPath(virtualPath)));
 }
Exemple #5
0
 public bool HasFilename(string filename)
 {
     return(FileMap.ContainsKey(filename));
 }