Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

tbtDTO is type of IList Object

IList ObjDTO = (ObjDTO)SaveTexts(tbtTextDTO);

I want to call IList ObjDTO = (ObjDTO)SaveTexts(tbtDTO) using thread
that means want to call SaveTexts method whish return IList Obj and I am passing tbtDTO which is IList containing values for iteration.

How can I do?

How can I declare the signature in interface class which i am using?


thanks
sjs
Posted
Updated 19-Aug-10 7:46am
v2

1 solution

What you need is Asynchronous method invocation (Using BeginEnvoke and EndInvoke) and use IAsyncResult to get the result. You need to use a delegate to invoke the method (The delegate will have matching signature with the method, that will accept parameter). Internally, your asynchronous method invocation will use a thread from the thread pool.

See Asynchronous Method Invocation[^] for details.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900