Commit Graph

601 Commits

Author SHA1 Message Date
Antony Male 83557fa29b Move ShowMessageBox onto the IWindowManager
Having it as an extension method is good architecturally, but make it harder
to change its behaviour. This way, users can override it easily if they wish.

This also means that the WindowManager does not depend on the IoC service
locator, insteady accepting a Func<IMessageBoxViewModel>
2014-11-29 20:50:21 +00:00
Antony Male aa129f54cd StyletIoC: Speed up GetAll calls slightly 2014-11-29 18:23:01 +00:00
Antony Male 788c50de47 PropertyChangedBase: don't fire the event if someone unsubscribed while we were dispatching 2014-11-29 18:14:18 +00:00
Antony Male b5ec9cffb8 BindableCollection: don't dispatch to the UI thread if there are no subscribers 2014-11-29 18:11:41 +00:00
Antony Male 87c248baa3 Fix a comment 2014-11-29 18:11:21 +00:00
Antony Male bcb821bcbd Stylistic changes 2014-11-29 18:11:13 +00:00
Antony Male 22066de5c8 Merge branch 'release/1.0.0' into develop 2014-11-27 11:17:41 +00:00
Antony Male 6253c4ad88 Bump version 2014-11-27 11:07:26 +00:00
Antony Male ebacf1ec71 Update changelog 2014-11-27 11:06:38 +00:00
Antony Male 17a3799811 Push unit test coverage up to 99.6% 2014-11-27 11:06:12 +00:00
Antony Male fc5958c537 Minor tweaks to the examples 2014-11-27 10:40:28 +00:00
Antony Male 4f036c01ee Update nuget 2014-11-27 10:32:44 +00:00
Antony Male 6933a121fa Remove extension methods from StyletIoC interfaces
While it's strictly better design, it does require people to import the
StyletIoC namespace - which they don't have to do, particularly if they're
writing a bootstrapper and letting VS set the builer's argument type
to StyletIoC.IStyletIoCBuilder
2014-11-27 10:32:36 +00:00
Antony Male 3090db08bf Remove more child container stuff 2014-10-22 20:40:56 +01:00
Antony Male 44a6fa67f4 Get rid of funcs with key. Keep those without a key 2014-10-22 20:35:02 +01:00
Antony Male d6452c6517 Strip out child container stuff
I've forked the IoC container to SlimIoC, so this is going to be simplified a bit
2014-10-22 20:33:47 +01:00
Antony Male 72dfc2ae1b Fire property/collection changed events synchronously, so the UI thread doesn't read them while they're still being manipulated 2014-09-29 18:57:15 +01:00
Antony Male be22da44d0 Add Modules to StyletIoC 2014-09-14 12:19:48 +01:00
Antony Male eb9339b081 Fix logger error when minimizing window 2014-09-13 19:01:36 +01:00
Antony Male 3845ec6626 Remove unused code 2014-09-13 18:58:12 +01:00
Antony Male d7cb3928d4 Little bit of tidying up 2014-09-13 18:45:23 +01:00
Antony Male 778e8d78c7 Remove unused variable 2014-09-12 17:51:40 +01:00
Antony Male 3efd74609d PerChildContainer registrations request themselves using the service type (oops) 2014-09-12 16:39:16 +01:00
Antony Male 142fb40ed9 GetAll returns empty enumerable if no registrations found 2014-09-12 16:38:57 +01:00
Antony Male 26116cb528 Improve error message when failing to resolve a constructor 2014-09-12 14:19:09 +01:00
Antony Male 5f77356584 Disable some binding checks for factories and instances 2014-09-12 14:04:46 +01:00
Antony Male 05f509fd47 Add ability to register instances 2014-09-12 13:11:39 +01:00
Antony Male 4eeb114981 Remove and sort usings 2014-09-12 12:17:40 +01:00
Antony Male bc05f57b79 Mostly new docs 2014-09-12 10:20:15 +01:00
Antony Male 5fd04a410e Split the builder up into separate files, and move a couple of things out to extension methods 2014-09-12 09:50:23 +01:00
Antony Male f9a16df8be Revamp the fluent interface for IStyletIoCBuilder to make weak bindings better 2014-09-11 17:58:41 +01:00
Antony Male 4015c7341e Document all public bits of StyletIoC 2014-09-11 17:35:50 +01:00
Antony Male a54be9b5db Update some comments 2014-09-11 13:39:55 +01:00
Antony Male 1b03f1e7ad Update Rakefile to generate StyletIoC.cs from all of its composite files 2014-09-11 13:39:47 +01:00
Antony Male d69507b7be Split up all of the files with multiple classes, in StyletIoC 2014-09-11 13:18:33 +01:00
Antony Male 016eabb1a1 Fix bug where unbound generics weren't being propagated 2014-09-11 12:55:29 +01:00
Antony Male 3887d38a4a Little bit of work on the unit test coverage 2014-09-11 12:46:59 +01:00
Antony Male 95e52d543d Get funcs with keys working, too 2014-09-11 12:14:22 +01:00
Antony Male 206df2a7e0 Tweaking 2014-09-11 08:33:07 +01:00
Antony Male be6503c5ca Get IEnumerable<Func<T>> working as expected 2014-09-11 08:25:09 +01:00
Antony Male 4c7e197359 Remove Kernel.cs - not sure what it was doing there 2014-09-11 08:10:27 +01:00
Antony Male ad8ba84ee8 First attempt at func factories. Passes almost all tests 2014-09-10 21:14:38 +01:00
Antony Male 8f180c235f Rename ChildContainerScope to PerContainerScope 2014-09-10 14:07:00 +01:00
Antony Male bf26d4926d Cache work done in creating instance factory for ChildContainerRegistrations 2014-09-10 14:06:21 +01:00
Antony Male 0222106c4e Fix up a couple of bugs 2014-09-10 13:54:26 +01:00
Antony Male 37289a2b83 Get InChildContainerScope working - first time! 2014-09-10 13:21:19 +01:00
Antony Male 816df04f18 Add singleton disposing 2014-09-10 12:59:54 +01:00
Antony Male 3246f5db29 Add some unit tests 2014-09-10 12:49:28 +01:00
Antony Male a1c4c12030 That *should* be everything needed to create child containers... 2014-09-10 11:38:32 +01:00
Antony Male b12bdb0b59 Inject the IRegistrationContext everywhere it's needed... 2014-09-10 10:04:48 +01:00