Update policies.rst (#1634)

Return value must match method signature
pull/1514/merge
Nate Barbettini 2016-07-07 13:47:19 -07:00 committed by Rick Anderson
parent 84b13c10d9
commit b6ad1de59e
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ The minimum age handler might look like this:
if (!context.User.HasClaim(c => c.Type == ClaimTypes.DateOfBirth &&
c.Issuer == "http://contoso.com"))
{
return;
return Task.FromResult(0);
}
var dateOfBirth = Convert.ToDateTime(context.User.FindFirst(