Ejemplo n.º 1
0
        /// <summary>
        /// Constructs a service mount that hosts services on the specified base URI
        /// using the specified service host configuration.
        /// </summary>
        /// <param name="baseAddress"></param>
        /// <param name="configuration"></param>
        public ServiceMount(Uri baseAddress, IServiceHostConfiguration configuration)
        {
            _baseAddress   = baseAddress;
            _configuration = configuration;

            // establish default certificate search parameters consistent with behaviour prior to #8219
            _certificateSearchDirective = CertificateSearchDirective.CreateBasic(_baseAddress);
        }
Ejemplo n.º 2
0
 public ServiceHostConfigurationArgs(Type serviceContract, Uri hostUri, bool authenticated,
                                     int maxReceivedMessageSize, CertificateSearchDirective certificateSearchParams)
 {
     ServiceContract            = serviceContract;
     HostUri                    = hostUri;
     Authenticated              = authenticated;
     MaxReceivedMessageSize     = maxReceivedMessageSize;
     CertificateSearchDirective = certificateSearchParams;
 }
Ejemplo n.º 3
0
        private static CertificateSearchDirective GetCertificateSearchDirective(WebServicesSettings settings, Uri hostUri)
        {
            var directive = string.IsNullOrEmpty(settings.CertificateCustomFindValue)
                                        ? CertificateSearchDirective.CreateBasic(hostUri)
                                        : CertificateSearchDirective.CreateCustom(settings.CertificateFindType, settings.CertificateCustomFindValue);

            directive.StoreLocation = settings.CertificateStoreLocation;
            directive.StoreName     = settings.CertificateStoreName;
            return(directive);
        }
Ejemplo n.º 4
0
 public ServiceHostConfigurationArgs(Type serviceContract, Uri hostUri, bool authenticated,
                                     int maxReceivedMessageSize, CertificateSearchDirective certificateSearchParams)
 {
     ServiceContract            = serviceContract;
     HostUri                    = hostUri;
     Authenticated              = authenticated;
     MaxReceivedMessageSize     = maxReceivedMessageSize;
     CertificateSearchDirective = certificateSearchParams;
     SendTimeoutSeconds         = 0;     //Treated as default (e.g. don't change)
 }