为什么它仍然在CreateFromResourceUrlAsync上?
尝试执行此操作时:
/// <summary>
/// This function returns the Authority Url (OAuth Endpoint) and Resource Url (Dynamics 365 Url)
/// </summary>
/// <returns></returns>
public AuthenticationParameters DiscoverAuthority()
{
AuthenticationParameters authParamters = AuthenticationParameters.CreateFromResourceUrlAsync
(new Uri(BaseOrganizationApiUrl + "/api/data/")).Result;
return authParamters;
}
它停在上面的.Result线上。
我做错了什么?
如何获取AuthenticationParameters以获取OAuthToken?