Implementing the Invoke pattern?

 

Are there any details available on how to implement your own Invoke patern For example to have all calls on an object run on the object's creating thread

Thanks,

Ray Manning



Answer this question

Implementing the Invoke pattern?

  • Sai A

     

    I wasn't asking about how to use Invoke or why it is used, I was asking how to go about implementing the same pattern. I've made progress on the solution but haven't put together the solution.

    I'm pretty sure you can record the thread in the object at creation time and make use of an AsyncOperation object in order to implement a context change within an your implementation of Invoke().  I also think the practical solution involves creating a late bound version of Delegate.BeginInvoke.

    - Ray 


  • Wally_West

    Although it's not a complete solution for your question, you might wanna check my blog at: http://saguiitay.wordpress.com/2006/01/10/updating-forms-in-different-threads/
  • Implementing the Invoke pattern?