summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.WebPages/PreApplicationStartCode.cs
blob: c96173afcb59ed8ad9f96bb0826221e86c50f5d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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());
        }
    }
}