当我从 web.config 调用 X509CertificateValidator 时:
<serviceBehaviors>
<behavior name="MyServiceBehaviour">
[...]
<clientCertificate>
<authentication certificateValidationMode="Custom" customCertificateValidatorType="MyX509CertificateValidator, service" />
</clientCertificate>
[...]
</behavior>
</serviceBehaviors>
是否可以将任何参数/数据传递给
MyX509CertificateValidator
类?是否有可能找出调用了哪个行为(在这种情况下
MyServiceBehaviour
)MyX509CertificateValidator
(如果您在 web.config 中有多个行为)?