blob: 6623952eb9e7e678679c34932ba7dc428f7e97ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
namespace OpenIdProviderMvc.Code {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
internal static class Util {
internal static Uri GetAppPathRootedUri(string value) {
string appPath = HttpContext.Current.Request.ApplicationPath.ToLowerInvariant();
if (!appPath.EndsWith("/")) {
appPath += "/";
}
return new Uri(HttpContext.Current.Request.Url, appPath + value);
}
}
}
|