summaryrefslogtreecommitdiffstats
path: root/projecttemplates/MvcRelyingParty/Code/Extensions.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-12-29 07:03:28 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2009-12-29 07:03:28 -0800
commitbf44c99aecf25c34f73f7fd898ab5536e2afdcc9 (patch)
tree3ef15ec19666aafceb9e53b32263e16c0ac626b3 /projecttemplates/MvcRelyingParty/Code/Extensions.cs
parent29d9694640f782d5ad0abc6550067b252a4ac194 (diff)
downloadDotNetOpenAuth-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.cs17
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));
+ }
+ }
+}