PrincipalContext ValidateCredentials async

时间:2018-03-09 00:57:30

标签: c# asp.net-mvc principalcontext

我希望将PrincipalContext ValidateCredentials方法设为async。

<div id="Dropdown" class="dropdown">
  <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown">
    Dropdown button
  </button>
  <div class="dropdown-menu">
    <a class="dropdown-item" href="#">Action</a>
    <a class="dropdown-item" href="#">Another action</a>
    <a class="dropdown-item" href="#">Something else here</a>
  </div>
</div>

<button id="Button" type="button" class="btn btn-lg btn-danger" data-toggle="popover" data-placement=bottom title="Popover title" data-content="And here's some amazing content. It's very engaging. Right?">Click to toggle popover</button>

<script>
Button.hide = function() {console.log('hide button called')};
Dropdown.hide = function() {console.log('hide dropdown called')};
</script>

正如您所看到的,我正在尝试使用Active Directory对用户进行身份验证,但似乎pc.ValidateCreadentials是一种同步方法。我怎样才能让它异步?

0 个答案:

没有答案