summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.WebPages/PreApplicationStartCode.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.WebPages/PreApplicationStartCode.cs')
-rw-r--r--src/DotNetOpenAuth.WebPages/PreApplicationStartCode.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.WebPages/PreApplicationStartCode.cs b/src/DotNetOpenAuth.WebPages/PreApplicationStartCode.cs
new file mode 100644
index 0000000..c96173a
--- /dev/null
+++ b/src/DotNetOpenAuth.WebPages/PreApplicationStartCode.cs
@@ -0,0 +1,16 @@
+using System.ComponentModel;
+using System.Web.WebPages.Razor;
+using DotNetOpenAuth.Web;
+
+namespace DotNetOpenAuth.WebPages
+{
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static class PreApplicationStartCode
+ {
+ public static void Start()
+ {
+ WebPageRazorHost.AddGlobalImport("DotNetOpenAuth.Web");
+ OAuthWebSecurity.RegisterDataProvider(new WebPagesOAuthDataProvider());
+ }
+ }
+} \ No newline at end of file