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();
}
}
}