コード例 #1
0
        public static IHttpMessageSigningVerificationBuilder UseSignatureParser(this IHttpMessageSigningVerificationBuilder builder, ISignatureParser signatureParser)
        {
            if (signatureParser == null)
            {
                throw new ArgumentNullException(nameof(signatureParser));
            }

            return(builder.UseSignatureParser(provider => signatureParser));
        }
コード例 #2
0
 public static IHttpMessageSigningVerificationBuilder UseSignatureParser <TSignatureParser>(this IHttpMessageSigningVerificationBuilder builder)
     where TSignatureParser : ISignatureParser
 {
     return(builder.UseSignatureParser(provider => provider.GetRequiredService <TSignatureParser>()));
 }