ServiceStack.WebHost.Endpoints.EndpointHostConfig.EndpointHostConfig C# (CSharp) Method

EndpointHostConfig() public method

public EndpointHostConfig ( ) : System.Collections.Generic
return System.Collections.Generic
        public EndpointHostConfig()
        {
            this.UsageExamplesBaseUri = DefaultUsageExamplesBaseUri;
            this.ServiceEndpointsMetadataConfig = new ServiceEndpointsMetadataConfig
            {
                DefaultMetadataUri = "servicestack/metadata",
                Soap11 = new SoapMetadataConfig("servicestack/soap11/syncreply.svc", "servicestack/soap11/asynconeway.svc", "servicestack/soap11/metadata", "soap11"),
                Soap12 = new SoapMetadataConfig("servicestack/soap12/syncreply.svc", "servicestack/soap12/asynconeway.svc", "servicestack/soap12/metadata", "soap12"),
                Xml = new MetadataConfig("servicestack/xml/syncreply", "servicestack/xml/asynconeway", "servicestack/xml/metadata"),
                Json = new MetadataConfig("servicestack/json/syncreply", "servicestack/json/asynconeway", "servicestack/json/metadata"),
                Jsv = new MetadataConfig("servicestack/jsv/syncreply", "servicestack/jsv/asynconeway", "servicestack/jsv/metadata"),
            };
            this.LogFactory = new NullLogFactory();
            this.EnableAccessRestrictions = true;
            this.WsdlServiceNamespace = "http://schemas.servicestack.net/types";
            this.WsdlServiceTypesNamespace = "http://schemas.servicestack.net/types";
            this.ServiceStackHandlerFactoryPath = "servicestack";
            this.DefaultContentType = ContentType.Json;
            this.ContentTypeFilter = HttpResponseFilter.Instance;
            this.AllowJsonpRequests = true;
            this.DefaultDocuments = new List<string> {
                    "default.htm", "default.html", "index.htm", "index.html", "default.aspx", "default.ashx",
                };

            this.GlobalResponseHeaders = new Dictionary<string, string> { { "X-Powered-By", Env.ServerUserAgent } };
        }