title: WCF Custom Validator passing parameter and/or find out from which behavior the custom validator is called?
body: <p>when I call the X509CertificateValidator from the web.config:</p>
  
  <pre><code>&lt;serviceBehaviors&gt;
          &lt;behavior name="MyServiceBehaviour"&gt;
            [...]
              &lt;clientCertificate&gt;
                &lt;authentication certificateValidationMode="Custom" customCertificateValidatorType="MyX509CertificateValidator, service" /&gt;
              &lt;/clientCertificate&gt;
             [...] 
          &lt;/behavior&gt;
  &lt;/serviceBehaviors&gt;
  </code></pre>
  
  <ol>
  <li><p>Is it possible to pass any parameter/data to the <code>MyX509CertificateValidator</code> class?</p></li>
  <li><p>Is it possible to find out, from which behavior (in this case <code>MyServiceBehaviour</code>) the <code>MyX509CertificateValidator</code> is called (in case if you have several behaviors in the web.config)?</p></li>
  </ol>