milani_lucie
asked on
VB.NET equivalent code is needed ...
Hi,
I have following C# code for WCF. Can you please convert this C# code into VB.NET code ?
Service1Client svc = new Service1Client();
svc.GetPersonsCompleted += new EventHandler<GetPersonsCom pletedEven tArgs>(svc _GetPerson sCompleted );
Thanks
I have following C# code for WCF. Can you please convert this C# code into VB.NET code ?
Service1Client svc = new Service1Client();
svc.GetPersonsCompleted += new EventHandler<GetPersonsCom
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Both of them are not working ....
svc.GetPersonsCompleted += New EventHandler(Of GetPersonsCompletedEventAr gs)(svc_Ge tPersonsCo mpleted) // Syntax Error
Thanks
svc.GetPersonsCompleted += New EventHandler(Of GetPersonsCompletedEventAr
Thanks
Try
AddHandler svc.GetPersonsCompleted, AddressOf (Of GetPersonsCompletedEventAr gs)(svc_Ge tPersonsCo mpleted)
AddHandler svc.GetPersonsCompleted, AddressOf (Of GetPersonsCompletedEventAr
ASKER
AddHandler svc.GetPersonsCompleted, AddressOf (Of GetPersonsCompletedEventAr gs)(svc_Ge tPersonsCo mpleted)
Good try ... but NO LUCK !!
Thanks
Good try ... but NO LUCK !!
Thanks
ok, it is time to ask,
What are you trying to acomplish??
Is this a wcf service???
What are you trying to acomplish??
Is this a wcf service???
ASKER
Yes..I want to do Asynchronous Communication - Event Based Model using VB.NET.
Thanks
Thanks
ASKER
Here is the link for C# code:
http://www.danrigsby.com/blog/index.php/2008/03/18/async-operations-in-wcf-event-based-model/
Thanks
http://www.danrigsby.com/blog/index.php/2008/03/18/async-operations-in-wcf-event-based-model/
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Masteraco:
I am using Event Based Model.
Thanks
I am using Event Based Model.
Thanks
ASKER
>Both of them are not working ....
You are getting errors? Nothing happening?
You are getting errors? Nothing happening?
Them are not apps are examples and tutos of how to do it
ASKER
I have gone through this article already - http://www.codeproject.com/Articles/31077/Automatic-Implementation-of-the-Event-Based-Asynch . But i did not understand why the MSDN itself is NOT working - http://msdn.microsoft.com/en-us/library/ms730059.aspx
Thanks
Thanks
Are you working with Framework 4 right?
ASKER
CodeCruiser,
Nothing is happening. I am not getting any results back from server. No error though.
Thanks
Nothing is happening. I am not getting any results back from server. No error though.
Thanks
ASKER
Framework 3.5 - Visual Studio 2008
Thanks
Thanks
So it may not be the code issue on client. May be the call to the service is not executing or some other issue. That is the syntax in VB.NET for the code you showed though.
ASKER
Sorry. It is not giving results in C# also. The article i have followed is not a good article. Appreciate your great help !!
Thanks
Thanks
svc.GetPersonsCompleted += New EventHandler(Of GetPersonsCompletedEventAr