سؤال

In WepApi 6 we were making use of multiple configuration options by passing the config on the route:

RouteTable.Routes.MapServiceRoute<UserService>("1.0/User/", defaultWebApiConfiguration);
RouteTable.Routes.MapServiceRoute<SomeOtherService>("1.0/SomeOtherService/", largeFilesConfig);

Where things like "MaxBufferSize", "MaxReceivedMessageSize", and "TransferMode" were set set appropriately. How can I acheive the same effect using an ASP.NET hosted application?

لا يوجد حل صحيح

نصائح أخرى

You can't at the moment. You can create multiple hosts in self-host but in MVC hosted there currently is just one config.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top