Queueing method calls - any idea how?

Posted by TomTom on Stack Overflow See other posts from Stack Overflow or by TomTom
Published on 2010-05-05T16:05:49Z Indexed on 2010/05/05 16:08 UTC
Read the original article Hit count: 305

Filed under:
|

I write a heavily asynchronseous application.

I am looking for a way to queue method calls, similar to what BeginInvoke / EndInvoke does.... but on my OWN queue. The reaqson is that I am having my own optimized message queueing system using a threadpool but at the same time making sure every component is single threaded in the requests (i.e. one thread only handles messages for a component).

I Have a lot of messages going back and forth. For limited use, I would really love to be able to just queue a message call with parameters, instead of having to define my own parameter, method wrapping / unwrapping just for the sake of doing a lot of admnistrative calls. I also do not always want to bypass the queue, and I definitely do not want the sending service to wait for the other service to respond.

Anyone knows of a way to intercept a method call? Some way to utilize TransparentProxy / Virtual Proxy for this? ;) ServicedComponent? I would like this to be as little overhead as possible ;)

© Stack Overflow or respective owner

Related posts about c#

Related posts about transparentproxy

  • Queueing method calls - any idea how?

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I write a heavily asynchronseous application. I am looking for a way to queue method calls, similar to what BeginInvoke / EndInvoke does.... but on my OWN queue. The reaqson is that I am having my own optimized message queueing system using a threadpool but at the same time making sure every component… >>> More

  • QoS, Squid, Virgin superhub

    as seen on Super User - Search for 'Super User'
    I'm a student and have just moved into a house of 6. We've setup 100mb broadband with Virgin and get quite good speeds on it so we're really pleased. However, as there are 6 of us, who all like to stream/game/download etc I was looking at setting up QoS to ensure speeds were fair/equal etc. I looked… >>> More

  • Attach to Property's setter

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I haven't found similiar post so I'm asking this. Let's say I defined somewhere an application wide available static Property (I mean it's not local) and in one class I would like to know when this property is being changed. Apart from aop (transparentproxy etc.) which I think doesn't suit me well… >>> More

  • Unable to cast transparent proxy to type <type>

    as seen on West-Wind - Search for 'West-Wind'
    This is not the first time I've run into this wonderful error while creating new AppDomains in .NET and then trying to load types and access them across App Domains. In almost all cases the problem I've run into with this error the problem comes from the two AppDomains involved loading different copies… >>> More