Click here to Skip to main content
15,792,842 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
//Call to the Service

client1.BeginProcessRecords(SessionId, new AsyncCallback(Class.TransactionalDataCallback), client1);

//Call Back

if (result.AsyncState != null)
                {
                    client1 = (SendRawDataServiceReference.ProcessRecordsServiceClient)result.AsyncState;
                    intProcessedRecCount = intProcessedRecCount + 1;
                    client1.EndProcessRecords(result);
                }
Hi All,

I am having a exe program that will invoke a wcf service asynchronously. But when i try to invoke the service from the exe, the service is not getting invoked always and it is not throwing any exception.

While adding the service reference, i have checked the check box to Generate Asynchronous methods

I am not able to figure out what is the issue.

Any hepl is appreciated
Posted

1 solution

How to Call WCF Services Synchronously and Asynchronously[^]

I think It will solve your problem...
 
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