Пример #1
0
        public static void Process(this ServiceDescription sd, WsdlProcessingOptions options)
        {
            if (options.RemoveDocumentation)
            {
                sd.RemoveDocumentation();
            }

            if (options.EmbedCommandLineConfig)
            {
                sd.AddCommandLineConfig(options.RawProcessArguments);
            }

            if (options.RemovePortTypes.Any())
            {
                sd.RemovePortTypes(options.RemovePortTypes);
            }

            if (options.KeepOperations.Any())
            {
                sd.RemoveAllOtherOperations(options.KeepOperations);
            }

            if (options.ConvertToFireAndForget.Any())
            {
                sd.ConvertToFireAndForget(options.ConvertToFireAndForget);
            }

            sd.RemovePortsWithoutOperations();
            sd.RemoveBindingsWithoutOperations();
            sd.RemoveServicePortsWithoutBindings();
            sd.RemoveUnreferencesMessages();
        }