Exemplo n.º 1
0
        protected override ServiceEndpoint CreateServiceEndpoint(ContractDescription contractDescription)
        {
            UdpSecureDiscoveryEndpoint endpoint = new UdpSecureDiscoveryEndpoint(
                this.DiscoveryVersion,
                this.SigningCertificateStoreSettingsElement.StoreSettings);

            endpoint.ReceivedCertificatesStoreSettings = this.ReceivedCertificatesStoreSettingsElement.StoreSettings;
            return(endpoint);
        }
Exemplo n.º 2
0
        protected override void InitializeFrom(ServiceEndpoint endpoint)
        {
            base.InitializeFrom(endpoint);

            UdpSecureDiscoveryEndpoint source = (UdpSecureDiscoveryEndpoint)endpoint;

            this.ReceivedCertificatesStoreSettingsElement.ApplySettings(source.ReceivedCertificatesStoreSettings);
            this.SigningCertificateStoreSettingsElement.ApplySettings(source.SigningCertificateStoreSettings);
            this.DiscoveryVersion = source.DiscoveryVersion;
        }
 protected override ServiceEndpoint CreateServiceEndpoint(ContractDescription contractDescription)
 {
     UdpSecureDiscoveryEndpoint endpoint = new UdpSecureDiscoveryEndpoint(
         this.DiscoveryVersion,
         this.SigningCertificateStoreSettingsElement.StoreSettings);
     endpoint.ReceivedCertificatesStoreSettings = this.ReceivedCertificatesStoreSettingsElement.StoreSettings;
     return endpoint;
 }