c# - Implement client-specific WCF ServicePointManager ServerCertificateValidationCallback? -
servicepointmanager.servercertificatevalidationcallback allows custom validation of service-side certificates.
this works fine when there 1 custom validator. have multiple clients , need able specify different validators each client.
now, best can tell, there 1 servicepointmanager clientbase objects, so, default, clients pass through same service-side certificate validation chain.
if have to, suppose could:
hook validators chain , add logic each understand when validate , when return true
maintain collection of validators (ugh!) , invoke appropriately
i'm hoping avoid both ... there extensible component built wcf supports multiple servicepointmanagers?
help! suggestions or pointers welcome!
Comments
Post a Comment