GithubHelp home page GithubHelp logo

bbvcommon's People

Contributors

philippdolder avatar ursenzler avatar

Watchers

 avatar

bbvcommon's Issues

eventBroker: UI Thread Subscriber doesn't seem to switch to the UI Thread

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

Fix occasionally failing unit test AsyncResultTest.TestLifeTimeService

AsyncResultTest.TestLifeTimeService (bbv.Common.Test.dll: bbv.Common.Async)
Test history
Assign responsibility
Open in IDE
      Expected: greater than or equal to 00:00:00
      But was:  -00:00:00.0056250
       at NUnit.Framework.Assert.That(Object actual, IResolveConstraint expression, String message, Object[] args)


Original issue reported on code.google.com by [email protected] on 2 Aug 2010 at 6:50

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.