Skip to content

4.0.0.115

Compare
Choose a tag to compare
@scottoffen scottoffen released this 12 Sep 16:29
· 81 commits to master since this release

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.

#114 Improved Route Scanning

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 current AppDomain.

#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.