2014-02-27 24 views
3

這可能是一個愚蠢的問題,但我沒有在Internet上找到答案。我看到下面的代碼爲MVC5和oAuthMVC5使用GoogleAuthentication mysterios方法

app.UseFacebookAuthentication app.UseGoogleAuthentication();

但是,在調試器中沒有看到任何名爲UseGoogleAuthentication的應用程序對象的方法。我在Katana代碼中看到AppBuilder上的「使用」方法。那麼發生了什麼?從這裏「app.UseGoogleAuthentication();」神祕的方法即將結束?我確定我錯過了一些約定,但它是什麼?

在此先感謝

回答

4

這是一個擴展方法,它應該顯示出來,一旦你安裝Microsoft.Owin.Security.Google NuGet包。