Ejemplo n.º 1
0
        public void AllowAccess(string path)
        {
            if (path == null)
            {
                throw new ArgumentNullException("path");
            }
            if (!path.StartsWith("~/"))
            {
                throw new ArgumentException(string.Format("The path \"{0}\" is not application relative. It must start with \"~/\".", path), "path");
            }

            paths.Add(path);
        }
Ejemplo n.º 2
0
        void CopyRawFileToOutput(string sourceFilename)
        {
            var absoluteSourceFilename = AbsoluteSourcePath(sourceFilename);

            if (!File.Exists(absoluteSourceFilename))
            {
                return;                                       // TODO: Log this as a warning?
            }
            if (copiedFilenames.Contains(absoluteSourceFilename))
            {
                return;
            }

            var outputPath = CreateOutputFilename(sourceFilename);

            CopyFile(absoluteSourceFilename, outputPath);
            copiedFilenames.Add(absoluteSourceFilename);
        }