Exemplo n.º 1
0
 public override string AddContent(string sourcePath)
 {
     if (!FileMap.ContainsKey(sourcePath))
     {
         string destFileName = GenerateContentFileName(sourcePath);
         AddContent(sourcePath, destFileName);
         return(sourcePath);
     }
     else
     {
         return(sourcePath);
     }
 }
Exemplo n.º 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]));
     }
 }
Exemplo n.º 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)));
 }
Exemplo n.º 5
0
 public bool HasFilename(string filename)
 {
     return(FileMap.ContainsKey(filename));
 }