Exemplo n.º 1
0
        /// <summary>
        /// Sets the test UDDI lookup factory configuration
        /// </summary>
        public virtual void SetTestUddiLookupFactoryConfig()
        {
            UddiLookupClientFactoryConfig uddiFactoryConfig = ConfigurationHandler.GetConfigurationSection <UddiLookupClientFactoryConfig>();

            uddiFactoryConfig.ImplementationAssembly       = "dk.gov.oiosi.library";
            uddiFactoryConfig.ImplementationNamespaceClass = "dk.gov.oiosi.uddi.UddiLookupClientTest";

            RegistryLookupClientFactoryConfig regFactoryConfig = ConfigurationHandler.GetConfigurationSection <RegistryLookupClientFactoryConfig>();

            regFactoryConfig.ImplementationAssembly        = "dk.gov.oiosi.library";
            uddiFactoryConfig.ImplementationNamespaceClass = "dk.gov.oiosi.uddi.RegistryLookupClient";
        }
Exemplo n.º 2
0
        private void SetUpConfiguration()
        {
            // Configures fallback sequence
            UddiConfig uddiConfig = ConfigurationHandler.GetConfigurationSection <UddiConfig>();

            uddiConfig.FallbackTimeoutMinutes = 1;
            //uddiConfig.PublishEndpoint = uddiConfig.SecurityEndpoint = "http://a.com";
            uddiConfig.LookupRegistryFallbackConfig = new LookupRegistryFallbackConfig();
            uddiConfig.LookupRegistryFallbackConfig.PrioritizedRegistryList.Add(
                new Registry(
                    new List <string>()
            {
                firstRegistry.ToString(),
                firstFallback.ToString()
            }));

            uddiConfig.LookupRegistryFallbackConfig.PrioritizedRegistryList.Add(
                new Registry(
                    new List <string>()
            {
                secondRegistry.ToString(),
                secondFallback.ToString()
            }));

            uddiConfig.LookupRegistryFallbackConfig.PrioritizedRegistryList.Add(
                new Registry(
                    new List <string>()
            {
                thirdRegistry.ToString()
            }));

            uddiConfig.LookupRegistryFallbackConfig.PrioritizedRegistryList.Add(
                new Registry(
                    new List <string>()
            {
                fourthRegistry.ToString(),
                fourthFallback1.ToString(),
                fourthFallback2.ToString()
            }));

            // Configures factories for UDDI lookup clients used
            RegistryLookupClientFactoryConfig registryLookupClientFactoryConfig = ConfigurationHandler.GetConfigurationSection <RegistryLookupClientFactoryConfig>();

            registryLookupClientFactoryConfig.ImplementationNamespaceClass = typeof(RegistryLookupClient).FullName;
            registryLookupClientFactoryConfig.ImplementationAssembly       = typeof(RegistryLookupClient).Assembly.FullName;
            UddiLookupClientFactoryConfig uddiLookupClientFactoryConfig = ConfigurationHandler.GetConfigurationSection <UddiLookupClientFactoryConfig>();

            uddiLookupClientFactoryConfig.ImplementationNamespaceClass = typeof(AdvancedUddiDummyClient).FullName;
            uddiLookupClientFactoryConfig.ImplementationAssembly       = typeof(AdvancedUddiDummyClient).Assembly.FullName;
        }