void IServiceBehavior.Validate (ServiceDescription serviceDescription, ServiceHostBase serviceHostBase) { if (serviceHostBase == null) throw new ArgumentNullException ("serviceHostBase"); var dse = serviceHostBase.Extensions.Find<DiscoveryServiceExtension> (); if (dse == null) { dse = new MyDiscoveryServiceExtension (); serviceHostBase.Extensions.Add (dse); } GetBase ().Validate (serviceDescription, serviceHostBase); }
void IServiceBehavior.Validate(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase) { if (serviceHostBase == null) { throw new ArgumentNullException("serviceHostBase"); } var dse = serviceHostBase.Extensions.Find <DiscoveryServiceExtension> (); if (dse == null) { dse = new MyDiscoveryServiceExtension(); serviceHostBase.Extensions.Add(dse); } GetBase().Validate(serviceDescription, serviceHostBase); }