2016-12-21 181 views
1

我想找到稱爲UseStatusCodePagesWithReExecute的Asp.Net Core MVC ApplicationBuilder擴展的源代碼。基於這個文檔http://dotnet.today/en/aspnet5-api/autoapi/Microsoft/AspNet/Builder/StatusCodePagesExtensions/index.html它看起來像它在一個類Microsoft.AspNet.Builder.StatusCodePagesExtensions。該頁面也有一個「查看它的GitHub」鏈接,這將解決我的問題,但不幸的是它返回一個404.UseStatusCodePagesWithReExecute的GitHub存儲庫?

我已經在GitHub上尋找來找到這個源代碼,但尚未成功。它似乎不在https://github.com/aspnet/Home存儲庫中。這是我在github上ASPNET組織產量什麼搜索UseStatusCodePagesWithReExecute

enter image description here

什麼庫包含了Microsoft.AspNet.Builder.StatusCodePagesExtensions類的源代碼?該文件在哪裏,你如何找到它?

回答

2

https://github.com/aspnet/Diagnostics/blob/3a868d87a2458fd025ca71e2538b3a72f67c7c50/src/Microsoft.AspNetCore.Diagnostics/StatusCodePage/StatusCodePagesExtensions.cs#L164

鏈接可能最終死亡,因此對於未來去:https://github.com/aspnet

並把該方法在頂部的搜索欄的有機整體。在這種情況下,只有10個用途,我只需要找到具有方法聲明的那個。

編輯:

什麼我的搜索屏幕看起來像: enter image description here

+0

我去https://github.com/aspnet和對組織的頂部的搜索欄搜索'UseStatusCodePagesWithReExecute',得到了沒有結果,我也嘗試在那裏搜索'StatusCodePagesExtensions',但也沒有結果。你怎麼能夠找到這個源代碼? –

+0

@RonC我添加了搜索查詢的屏幕截圖,並在其中查看了箭頭的用法。請注意,它位於左側的「代碼」部分。 –

+0

謝謝!但是我得到了不同的搜索結果,請參閱我的截圖更新後的問題。我們如何才能在github上進行相同的搜索並獲得不同的結果?我一定在做錯事,但是什麼? –