Render() public method

public Render ( System.Web.UI.HtmlTextWriter output ) : void
output System.Web.UI.HtmlTextWriter
return void
コード例 #1
0
        protected virtual void RenderOperation(HtmlTextWriter writer, string operationName, 
			string requestMessage, string responseMessage)
        {
            var operationControl = new OperationControl {
                MetadataConfig = EndpointHost.Config.ServiceEndpointsMetadataConfig,
                Title = EndpointHost.Config.ServiceName,
                EndpointType = this.EndpointType,
                OperationName = operationName,
                HostName = this.Request.GetUrlHostName(),
                RequestMessage = requestMessage,
                ResponseMessage = responseMessage,
            };
            operationControl.Render(writer);
        }
コード例 #2
0
        protected virtual void RenderOperation(HtmlTextWriter writer, string operationName, string requestMessage, string responseMessage, string restPaths, string descriptionHtml)
        {
            var operationControl = new OperationControl
            {
                MetadataConfig = EndpointHost.Config.ServiceEndpointsMetadataConfig,
                Title = EndpointHost.Config.ServiceName,
                EndpointType = this.EndpointType,
                OperationName = operationName,
                HostName = this.Request.GetUrlHostName(),
                RequestMessage = requestMessage,
                ResponseMessage = responseMessage,
                RestPaths = restPaths,
                DescriptionHtml = descriptionHtml,
            };
            if (!this.ContentType.IsNullOrEmpty())
            {
                operationControl.ContentType = this.ContentType;
            }
            if (!this.ContentFormat.IsNullOrEmpty())
            {
                operationControl.ContentFormat = this.ContentFormat;
            }

            operationControl.Render(writer);
        }
コード例 #3
0
        protected virtual void RenderOperation(HtmlTextWriter writer, IHttpRequest httpReq, string operationName,
            string requestMessage, string responseMessage, string metadataHtml)
        {
            var operationControl = new OperationControl
            {
                HttpRequest = httpReq,
                MetadataConfig = EndpointHost.Config.ServiceEndpointsMetadataConfig,
                Title = EndpointHost.Config.ServiceName,
                Format = this.Format,
                OperationName = operationName,
                HostName = httpReq.GetUrlHostName(),
                RequestMessage = requestMessage,
                ResponseMessage = responseMessage,
                MetadataHtml = metadataHtml,
            };
            if (!this.ContentType.IsNullOrEmpty())
            {
                operationControl.ContentType = this.ContentType;
            }
            if (!this.ContentFormat.IsNullOrEmpty())
            {
                operationControl.ContentFormat = this.ContentFormat;
            }

            operationControl.Render(writer);
        }