Пример #1
0
        /// <summary>
        /// Initializes default request element definition and applies customizations (if any).
        /// </summary>
        public RequestDefinition GetRequestDefinition(OperationDefinition operationDefinition)
        {
            var requestDefinition = new RequestDefinition(operationDefinition);

            operationDefinition.ExtensionSchemaExporter?.ExportRequestDefinition(requestDefinition);
            schemaExporter.ExportRequestDefinition(requestDefinition);

            return(requestDefinition);
        }
        /// <summary>
        /// Initializes default request element definition and applies customizations (if any).
        /// </summary>
        public RequestDefinition GetRequestDefinition(OperationDefinition operationDefinition)
        {
            var requestDefinition = new RequestDefinition(operationDefinition, schemaExporter.IsQualifiedElementDefault);

            operationDefinition.ExtensionSchemaExporter?.ExportRequestDefinition(requestDefinition);
            schemaExporter.ExportRequestDefinition(requestDefinition);

            return(requestDefinition);
        }