You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Write a subscriber something along the following
[EventSubscription(EventTopics.MyEvent,
typeof(bbv.Common.EventBroker.Handlers.UserInterface))]
Where you are asking the eventbroker to run in the UI thread
2.
Write an Event publisher that generates the event
[EventPublication(EventTopics.MyEvent)]
public event EventHandler AnEvent;
What is the expected output? What do you see instead?
The expected is that the delegate will run in the UI thread.. .instead it runs
in the event broker's thread and causes an exception
What version of the product are you using?
Current as of 2/27/2011
On what operating system?
Windows XP
Please provide any additional information below.
It appears the method in userinterface.cs below does not do as intended:
Thanks
private Exception CallWithThreadSwitch(Delegate subscriptionHandler, object
sender, EventArgs e)
{
Exception exception = null;
this.syncContextHolder.SyncContext.Send(
delegate(object data)
{
try
{
((Delegate)data).DynamicInvoke(sender, e);
}
catch (TargetInvocationException ex)
{
exception = ex;
}
},
subscriptionHandler);
return exception;
}
Original issue reported on code.google.com by [email protected] on 3 Mar 2011 at 7:22
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 3 Mar 2011 at 7:22The text was updated successfully, but these errors were encountered: