Exemplo 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);
        }
Exemplo n.º 2
0
        public static string Resolve(string tempPath, string uri)
        {
            UriResolver r = GetResolver(tempPath, uri);

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

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