bbvcommon / bbv.Common

For software engineers who want to build flexible, extensible and maintainable software systems, bbv.Common is an open source library of software components that makes building multi-threaded, event-based and loosely coupled systems easy.
 Unlike other open or closed source solutions we offer proven concepts that are used in our real world projects.
http://code.google.com/p/bbvcommon/
44 stars 18 forks source link

ExtensionHost is null on EventBroker.Handlers.UserInterface #28

Open Aretnorp opened 12 years ago

Aretnorp commented 12 years ago

Whenever an event is raised that causes a targetInvocationException, EventBrokerHandlerBase.cs throws a null object exception due to the ExtensionHost property being null. This occurs when using an instance of the derived class, UserInterface.

In UserInterface.cs, the method

public virtual void Initialize(object subscriber, MethodInfo handlerMethod, IExtensionHost extensionHost)

is overridden but the base method, which sets the this.ExtensionHost property, is never called.

The extensionHost argument is passed into the UserInterface.cs and is not null.

This issue appears to affect the UserInterface and UserInterfaceAsync classes.

danielmarbach commented 12 years ago

Urs have you had time to look at it? I think you are the faster one regarding the event broker.