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

Decorate() public method

public Decorate ( ExtendedCodeDomTree code, CustomCodeGenerationOptions options ) : void
code ExtendedCodeDomTree
options CustomCodeGenerationOptions
return void
        public void Decorate(ExtendedCodeDomTree code, CustomCodeGenerationOptions options)
        {
            this.code = code;
            this.options = options;
            this.configuration = code.Configuration;

            // Are we on the service side code gen?
            if (options.GenerateService)
            {
                // Then generate the service side configuration.
                GenerateServiceConfiguration();

                // Do we have to enable metadata endpoint?
                if (options.EnableWsdlEndpoint)
                {
                    AddMetadataServiceBehavior();
                }
            }
        }