A new version of the RES service library for .NET has been released!
NuGet: ResgateIO.Service v0.4.1
This release enables asynchronous programming using Task Parallel Library (TPL), which let’s you utilize the server CPUs more efficiently. This new feature required a backwards incompatible change to the API, where the old IResourceHandler interface was replaced with the new IAsyncHandler interface.
What does that mean in terms of upgrading to this version?
-
ModelHandler
andCollectionHandler
are obsolete andBaseHandler
should be used instead. - Classes inheriting from
BaseHandler
should no longer have override for the handler methods. - The Apply handlers now gets the event data in an object derived from EventArgs. Revert information is also stored in that object, instead of being returned by the handler method.
- DynamicHandler has deprecated the Set prefix to its methods.
As an example on how to upgrade, look at the changes required to upgrade the examples.
The release also adds two new examples, and a couple of other minor features. The full list is as follows:
Features & improvements
- Add ResService.WithGroup
- Asynchronous programming support using TPL
- Add .NET Standard 2.0 target
- Handler event listeners
- RES Protocol v1.1.1 support
- Improved ILogger interface
- Search query example
- Hello World examples
- Implement IDisposal interface
- Remove Set prefix from DynamicHandler methods