473,385 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Calling Reflected Methods Asyncronously

hi guys and gals,

I've just run into an interesting problem. I'm trying to call assembly
methods which are not bound to the main project assembly. The Interface is
always the same, however due to differences in processing lenght, I thought
it be better to invoke some of the methods asyncronously and allow the system
to continue processing.

However, the code line 'executeMyMethod.Invoke(myObjectInstance, null)'
where executeMyMethod is of type MethodInfo and myObjectInstance is the
Reflected Type there is no BeginInvoke.

Now, I thought about using a delegate as I would normally do to perform
Async operations on normal methods, but I just cannot seam to figure it out
or if its even possible on reflected methods?

Has anyone tried and succeeded to do this, or do I have to go down the road
of implimenting the Async call withing the Reflected Assembly which I'd
prefer not to do...

Any help would be appreciated

Regards

Andy
Nov 22 '05 #1
1 1338
Andy,
Now, I thought about using a delegate as I would normally do to perform
Async operations on normal methods, but I just cannot seam to figure it out
or if its even possible on reflected methods?


Delegate.CreateDelegate() can give you a delegate from a MethodInfo or
mathod name if that's what you're looking for.
Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Matthew Bell | last post by:
Hi, I've got a question about whether there are any issues with directly calling attributes and/or methods of a threaded class instance. I wonder if someone could give me some advice on this. ...
0
by: Sansanee | last post by:
Hi, I am having problem using EmployeePrivateAdrUS.GetList through SAP.NET. I used the code below and get the error messgae that the method can not be reflected. I assume taht the problem arise...
1
by: Andy Furnival | last post by:
hi guys and gals, I've just run into an interesting problem. I'm trying to call assembly methods which are not bound to the main project assembly. The Interface is always the same, however due...
14
by: ericellsworth | last post by:
Hi, I'm trying to use a class to pass variables back and forth from a form opened in dialog mode. I have created a class which invokes a form in its show method, like so: Public Sub Show() '...
30
by: Tim Marshall | last post by:
Here's the scenario, A2003, Jet back end, illustrated with some cut down code at the end of the post: A proc dims a snapshot recordset (dim rst as Dao.recordset) and opens it. There are several...
8
by: John Jenkins | last post by:
Hi, I posted the following on GotDotNet, sorry for cross posting but I have a serious issue on an important proof of concept... Hi, I have the same issue as ...
2
by: yqlu | last post by:
I hava developed a client in C# that is connected to a 3-party XML Web Services developed in Java based on the AXIS 1.1. Most methods call are successful except for one method named "findObjects"...
0
by: cataztrophe | last post by:
I have an ASP.NET/VB.NET program. There is a webservice does processing in a separate project which does not return any values. The webservice is executed upon clicking the run button on a certain...
0
by: dev | last post by:
I have a website that dynamically instantiates an instance of a class using Reflection from another Assembly. Within that class there is a method that calls a webservice. The webservice is a...
0
by: tomwilliams | last post by:
Mornign All, I have a webservice setup and need to call this asyncronously from a winform app. I have added the reference to the winform Then Dim web_Print as New Apps002.Service
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.