1
我想探討將DNOA與MVC4 Web API集成的建議。目前DNOA資源服務器實現具有以下兩個重載,它們將HttpRequestBase或HttpRequestMessageProperty作爲輸入,但由於類型不兼容,這些方法不再與新的MVC 4 WebAPI消息委託處理程序兼容。委託處理程序是圍繞System.Net.Http.HttpRequestMessage。與代理處理程序的DNOA和MVC4 WebAPI集成
/// <summary>
/// Discovers what access the client should have considering the access token in the current request.
/// </summary>
public virtual IPrincipal GetPrincipal(HttpRequestBase httpRequestInfo = null, params string[] requiredScopes)
/// <summary>
/// Discovers what access the client should have considering the access token in the current request.
/// </summary>
public virtual IPrincipal GetPrincipal(HttpRequestMessageProperty request, Uri requestUri, params string[] requiredScopes)
我能得到它,並用HTTP模塊運行,但我想找出預期DNOA與MVC4的Web API使用特別是代表團的處理程序。