Beispiel #1
0
        /// <summary>
        /// Close all clients (connections) to web services.
        /// </summary>
        public static void CloseClients()
        {
            if (AnalysisService.IsNotNull())
            {
                AnalysisService.CloseClients();
            }

            if (GeoReferenceService.IsNotNull())
            {
                GeoReferenceService.CloseClients();
            }

            if (KulService.IsNotNull())
            {
                KulService.CloseClients();
            }

            if (MvmService.IsNotNull())
            {
                MvmService.CloseClients();
            }

            if (NorsService.IsNotNull())
            {
                NorsService.CloseClients();
            }

            if (NorwayTaxonService.IsNotNull())
            {
                NorwayTaxonService.CloseClients();
            }

            if (PESINameService.IsNotNull())
            {
                PESINameService.CloseClients();
            }

            if (PictureService.IsNotNull())
            {
                PictureService.CloseClients();
            }

            if (ReferenceService.IsNotNull())
            {
                ReferenceService.CloseClients();
            }

            if (SersService.IsNotNull())
            {
                SersService.CloseClients();
            }

            if (SpeciesObservationHarvestService.IsNotNull())
            {
                SpeciesObservationHarvestService.CloseClients();
            }

            if (SwedishSpeciesObservationService.IsNotNull())
            {
                SwedishSpeciesObservationService.CloseClients();
            }

            if (SwedishSpeciesObservationSOAPService.IsNotNull())
            {
                SwedishSpeciesObservationSOAPService.CloseClients();
            }

            if (TaxonAttributeService.IsNotNull())
            {
                TaxonAttributeService.CloseClients();
            }

            if (TaxonService.IsNotNull())
            {
                TaxonService.CloseClients();
            }

            if (DyntaxaInternalService.IsNotNull())
            {
                DyntaxaInternalService.CloseClients();
            }

            if (UserService.IsNotNull())
            {
                UserService.CloseClients();
            }

            if (WramService.IsNotNull())
            {
                WramService.CloseClients();
            }
        }