Commit Graph

9 Commits

Author SHA1 Message Date
Antony Male 16a61db659 Rewrite parts of the EventAggregator to avoid reentrancy issues 2016-03-24 10:21:49 +00:00
Antony Male fc7f164c53 Remove unnecessary usings in unit tests 2015-09-23 21:46:36 +01:00
Antony Male f36de34bb2 Execute.Dispatcher can never be null, and dispatches synchronously by default
The previous behaviour was to raise an exception unless Execute.Dispatcher
had been explicitly defined. This was to detect cases where the user hadn't
set up Execute correctly, and treat them as errors rather than simply going
ahead with some possibly-unexpected behaviour.

However, since BootstrapperBase sets Execute.Dispatcher automatically, it's
highly unlikely that itwould ever not be set when it needed to be. Exceptions
are design mode and unit tests, both of which want (or can cope with) a
synchronous dispatcher.

Hence the behaviour change. Execute.Dispatcher is a synchronous dispatcher
by default, but is overridden to one that uses Application.Current.Dispatcher
by the bootstrapper if we're in a real application.
2015-01-04 21:30:34 +00:00
Antony Male 9ee23f1469 Remove Execute.TestExecuteSynchronously, in favour of a synchronous IDispatcher implementation 2015-01-04 13:10:37 +00:00
Antony Male 6f63c5cc2d Add channels to the EventAggregator 2014-06-17 17:44:35 +01:00
Antony Male 4fa4133248 Improve unit test code coverage some more 2014-05-06 17:42:55 +01:00
Antony Male 70010884a3 Actually test that EventAggregator doesn't retain its target 2014-03-11 13:52:44 +00:00
Antony Male 6ee8927137 Stitch EventAggregator into bootstrapper 2014-02-25 13:21:26 +00:00
Antony Male f41645ab89 Finish EventAggregator, and start writing tests 2014-02-25 13:12:34 +00:00