开发者

Problem with accessible in DotNetOpenauth?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜