I have put a preliminary implementation of a fluent configuration API into master (planning on it being in 4.9.0). With this new API you can do things on app startup like this:
Not that you have to set all these values (nor should you!!), but this demonstrates the flow of the API.
You can also define mappings for types or resource IDs to data portal proxies. In the following example I set the default proxy, and two specific proxies, one for a type, the other for types decorated with the new DataPortalServerResource attribute:
I have put a preliminary implementation of a fluent configuration API into master (planning on it being in 4.9.0). With this new API you can do things on app startup like this:
Not that you have to set all these values (nor should you!!), but this demonstrates the flow of the API.
You can also define mappings for types or resource IDs to data portal proxies. In the following example I set the default proxy, and two specific proxies, one for a type, the other for types decorated with the new
DataPortalServerResource
attribute:I welcome thoughts on the API, especially ways to improve it, or mistakes I've made.