Thinktecture.Tools.Web.Services.CodeGeneration.ConfigurationDecorator.UseFullyQualifiedTypeNamesInClientConfiguration C# (CSharp) Method

UseFullyQualifiedTypeNamesInClientConfiguration() private method

private UseFullyQualifiedTypeNamesInClientConfiguration ( ) : void
return void
        private void UseFullyQualifiedTypeNamesInClientConfiguration()
        {
            // Get a pointer to system.serviceModel section.
            ConfigurationSectionGroup csg = configuration.SectionGroups["system.serviceModel"];
            // Notify if we get a null reference.
            Debug.Assert(csg != null, "system.serviceModel section could not be found in the configuration.");

            if (csg != null)
            {
                // Get a reference to the client section.
                ClientSection cs = csg.Sections["client"] as ClientSection;
                // Proceed if we have a valid reference to the client section.
                if (cs != null)
                {
                    foreach (ChannelEndpointElement cee in cs.Endpoints)
                    {
                        cee.Contract = GetFullyQulifiedTypeName(cee.Contract);
                    }
                }
            }
        }