Answer:
- server
- MaxConcurrentRequests
- Buffered
class Program
{
{
private static string _baseAddress = "http://localhost:8080/";
static void Main(string[] args)
{
}
static void Main(string[] args)
{
var config = new HttpSelfHostConfiguration(_baseAddress);
config.Routes.MapHttpRoute(name:"DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new {id = RouteParameter.Optional});
var server = new HttpSelfHostServer(config);
server.OpenAsync().Wait();
}
config.Routes.MapHttpRoute(name:"DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new {id = RouteParameter.Optional});
- config
- MaxBufferSize
- config
- MaxReceivedMessageSize
- config
- Streamed
var server = new HttpSelfHostServer(config);
server.OpenAsync().Wait();