开发者

Problem with accessible in DotNetOpenauth?

开发者 https://www.devze.com 2023-01-06 15:52 出处:网络
I working on MVC project and use DotNetOpenAuth to connect with twitter, Once i declare private static InMemoryTokenManager _tokenManager = new InMemoryTokenManager(\"Twitter Consumer key\", \"Twitt

I working on MVC project and use DotNetOpenAuth to connect with twitter, Once i declare

private static InMemoryTokenManager _tokenManager = new InMemoryTokenManager("Twitter Consumer key", "Twitter Consumer secret");

    private InMemoryTokenManager TokenManager
    {
        get
        {
            return _tokenManager;
        }
    }

then when i build it got back an error which is

Error 1 'DotNetOpenAuth.ApplicationBlock.InMemoryTokenManager' is inaccessible due to its protection level

开发者_Go百科How i set the accessible or do any setting to use it, Thank you


InMemoryTokenManager is for samples use only. It's a bad implementation for a real app, which should be using its own ITokenManager class to store tokens in a database. That's why its inaccessible to your web site.

0

精彩评论

暂无评论...
验证码 换一张
取 消