diff --git a/nuget/Caliburn.Light.nuspec b/nuget/Caliburn.Light.nuspec index 7bcd6b8..1d9877c 100644 --- a/nuget/Caliburn.Light.nuspec +++ b/nuget/Caliburn.Light.nuspec @@ -3,7 +3,7 @@ Caliburn.Light Caliburn.Light - 1.8.0 + 1.8.1 Thomas Ibel The magic-free Caliburn.Light, a powerful framework designed for building applications across current XAML platforms. en-US @@ -12,13 +12,7 @@ https://github.com/tibel/Caliburn.Light/raw/master/logo.png false -- View-Model first: Bind before setting content -- [Universal] add DataTrigger -- change EventAggregator to work without Reflection -- [WPF] better fallback for active window -- remove WP8 and use NET451 -- [WPF] don't create Dispatcher upfront -- hide UI scheduler +- fix EventAggregator Copyright Thomas Ibel 2014-2015 Caliburn MVVM WPF WIN81 WPA81 Screen Coroutine EventAggregator Behavior Model-View-ViewModel Presentation UI ViewModel Phone IoC Validation Command Async diff --git a/src/Caliburn.Core/EventAggregator/EventAggregator.cs b/src/Caliburn.Core/EventAggregator/EventAggregator.cs index a1a328b..2984501 100644 --- a/src/Caliburn.Core/EventAggregator/EventAggregator.cs +++ b/src/Caliburn.Core/EventAggregator/EventAggregator.cs @@ -139,8 +139,7 @@ public void Publish(object message) lock (_handlers) { _handlers.RemoveAll(h => h.IsDead); - var messageType = message.GetType(); - selectedHandlers = _handlers.FindAll(h => h.CanHandle(messageType)); + selectedHandlers = _handlers.FindAll(h => h.CanHandle(message)); } if (selectedHandlers.Count == 0) return; diff --git a/src/GlobalAssemblyInfo.cs b/src/GlobalAssemblyInfo.cs index 0002317..cbf2d29 100644 --- a/src/GlobalAssemblyInfo.cs +++ b/src/GlobalAssemblyInfo.cs @@ -15,4 +15,4 @@ #endif [assembly: AssemblyVersion("1.8.0.0")] -[assembly: AssemblyFileVersion("1.8.0.0")] +[assembly: AssemblyFileVersion("1.8.1.0")]