Ejemplo n.º 1
0
        private static UriResolver GetResolver(string tempPath, string uri)
        {
            List <UriResolver> resolvers = new List <UriResolver>
            {
                new HttpUriResolver(tempPath),
                new FileUriResolver()
            };

            UriResolver r = resolvers.FirstOrDefault(x => x.CanResolve(uri));

            return(r);
        }
Ejemplo n.º 2
0
        public static string Resolve(string tempPath, string uri)
        {
            UriResolver r = GetResolver(tempPath, uri);

            return(r?.Resolve(uri));
        }
Ejemplo n.º 3
0
        public static string GetFilePath(string tempPath, string uri)
        {
            UriResolver r = GetResolver(tempPath, uri);

            return(r?.GetFilePath(uri));
        }