4.0.0.115
Resolved a number of miscellaneous bugs in addition to the following issues:
#110 Improved Error Handling in Router
Updated such that if the Begin
delegate gets invoked successfully, the After
delegate will also be invoked, even if exceptions are thrown in the request routing process.
#113 Replaced ReadOnlyDictionary
The read-only feature wasn't really providing any value. Each route gets a new instance of the dictionary anyway, so if you make changes to it in one route, the next route won't receive those changes.
Automatic routing has been separated out into its own concern - RouteScanner
- and is now accessed via a property on the Router
class - Router.Scanner
. While it can be invoked manually, its Scan()
method will be called automatically if the server is started with an empty routing table.
Scan()
can only scan assemblies in the currentAppDomain
.
#117 Error Parsing ContentType From String
There was an issue in the client where it was unable to parse a value from the ContentType
enum for the value in the string in the request. A new extension method was added to both resolve this and make the functionality consistent between the client and the server.