'DotNetOpenAuth.ApplicationBlock.WindowsLiveClient'不包含'ProcessUserAuthorizationAsync'的定义

时间:2013-07-13 08:37:32

标签: dotnetopenauth

我正在尝试将dotnetopenauth oauth2“windows live”示例用于此处显示的工作: https://github.com/DotNetOpenAuth/DotNetOpenAuth/tree/master/samples/OAuthClient

在WindowsLive.aspx.cs页面中,这两行不起作用:

windowsLiveClient.ProcessUserAuthorizationAsync

windowsLiveClient.PrepareRequestUserAuthorizationAsync

当我运行页面时,它会显示错误:

Compiler Error Message: CS1061: 'DotNetOpenAuth.ApplicationBlock.WindowsLiveClient' does  
not contain a definition for 'ProcessUserAuthorizationAsync' and no extension method 
'ProcessUserAuthorizationAsync' accepting a first argument of type 
'DotNetOpenAuth.ApplicationBlock.WindowsLiveClient' could be found (are you missing a 
using directive or an assembly reference?)

我正在使用dotnetopenauth ultimate 4.3.1.13153 dll。

我还把这三个文件放在我的app_code文件夹中,这是我从DotNetOpenAuth.ApplicationBlock文件夹中得到的:

IOAuth2Graph.cs
WindowsLiveClient.cs
WindowsLiveGraph.cs

我为成为一名初学者而道歉。我花了几天时间尝试了一百万种不同的东西,但我无法理解这一点。

0 个答案:

没有答案