public static IHttpMessageSigningVerificationBuilder UseSignatureParser(this IHttpMessageSigningVerificationBuilder builder, ISignatureParser signatureParser) { if (signatureParser == null) { throw new ArgumentNullException(nameof(signatureParser)); } return(builder.UseSignatureParser(provider => signatureParser)); }
public static IHttpMessageSigningVerificationBuilder UseSignatureParser <TSignatureParser>(this IHttpMessageSigningVerificationBuilder builder) where TSignatureParser : ISignatureParser { return(builder.UseSignatureParser(provider => provider.GetRequiredService <TSignatureParser>())); }