6 Commits

Author SHA1 Message Date
amaitland b0eeca3107 xml doc - Fix mistakes 2019-10-07 19:46:45 +10:00
amaitland 294c0b2f63 IBinder/DefaultBinder - Rename modelType to targetParamType
Hopefully param names makes the intent clearer
2019-09-27 08:00:25 +10:00
amaitland 8717167b76 JavascriptObjectRepository - Pass all params into IBinder.Bind not just dictionary/list
Previously only IDictionary<string, object>, IList<object> were passed, now all params are passed to allow for type conversion (Issue #2906)

Binding now occurs before missing params are added (they weren't passed to the binder previously, so this doesn't change the behaviour

This is a breaking change.

Resolves #2908
2019-09-27 08:00:06 +10:00
Chris bef5dd37c4 Maintenance - Fixed formatting, file encoding, and copyright year (#2504)
* Applied formatting

* Fixed file encoding + Updated copyright year

* Updated License

* Fixed more file encoding

* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00
Chris cd934267c6 Updated copyright year and made sure it used same format everywhere (#1966) 2017-03-06 08:44:37 +10:00
Alex Maitland d4feffb554 Feature - Add IBinder (#1749)
* Add basic ModelBinding which was imported from NancyFx framework - more can be stripped out that's unused

* Add IBinder as a param when registering an object for binding
Binding is disabled by default

* Add license and remove unused using statements

* Make bind method virtual to allow for overriding
Make methods protected

* Add very basic collection support - only primitive types supported for now.
Remove unused exceptions

* Support binding a list of sub objects

* Add null check for null params

* Add BindingOptions class - remove binder and CamelCaseJavascriptNames properties - allow for additional options in the future
Breaking change.

* Add support for List<object> binding type
2016-07-20 13:38:24 +10:00