public RequiredClaimAttribute(string claim, string value) { if (string.IsNullOrWhiteSpace(claim)) { throw new ArgumentNullException("claim"); } if (string.IsNullOrWhiteSpace(value)) { throw new ArgumentNullException("value"); } _matcher = ClaimsMatcher.Require(claim, value); }
public RequiredClaimAttribute(string claim, string value) { if (string.IsNullOrWhiteSpace(claim)) { throw new ArgumentNullException(nameof(claim)); } if (string.IsNullOrWhiteSpace(value)) { throw new ArgumentNullException(nameof(value)); } _matcher = ClaimsMatcher.Require(claim, value); _claim = claim; _value = value; }
public ExcludeClaimAttribute(string claim, string value) { _matcher = ClaimsMatcher.Not(claim, value); _claim = claim; _value = value; }