diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-29 07:03:28 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-29 07:03:28 -0800 |
commit | bf44c99aecf25c34f73f7fd898ab5536e2afdcc9 (patch) | |
tree | 3ef15ec19666aafceb9e53b32263e16c0ac626b3 /projecttemplates/MvcRelyingParty/Code/Extensions.cs | |
parent | 29d9694640f782d5ad0abc6550067b252a4ac194 (diff) | |
download | DotNetOpenAuth-bf44c99aecf25c34f73f7fd898ab5536e2afdcc9.zip DotNetOpenAuth-bf44c99aecf25c34f73f7fd898ab5536e2afdcc9.tar.gz DotNetOpenAuth-bf44c99aecf25c34f73f7fd898ab5536e2afdcc9.tar.bz2 |
Added privacy policy to sreg request.
Diffstat (limited to 'projecttemplates/MvcRelyingParty/Code/Extensions.cs')
-rw-r--r-- | projecttemplates/MvcRelyingParty/Code/Extensions.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/projecttemplates/MvcRelyingParty/Code/Extensions.cs b/projecttemplates/MvcRelyingParty/Code/Extensions.cs new file mode 100644 index 0000000..4af5413 --- /dev/null +++ b/projecttemplates/MvcRelyingParty/Code/Extensions.cs @@ -0,0 +1,17 @@ +namespace MvcRelyingParty { + using System; + using System.Collections.Generic; + using System.Linq; + using System.Web; + using System.Web.Mvc; + + internal static class Extensions { + internal static Uri ActionFull(this UrlHelper urlHelper, string actionName) { + return new Uri(HttpContext.Current.Request.Url, urlHelper.Action(actionName)); + } + + internal static Uri ActionFull(this UrlHelper urlHelper, string actionName, string controllerName) { + return new Uri(HttpContext.Current.Request.Url, urlHelper.Action(actionName, controllerName)); + } + } +} |