I have a large amount of code that I'm trying to convert to a Silverlight 4 Application from a VB.NET Win Forms App. All of the business logic code is written inline calling stored procedures on a database. There is so much code that
it's overhelming to be making asynchronous call after asynchronous call back to the WCF service. The code is now all over the place since I'm having to chain methods all around after the WCF calls complete.
I don't really need these WCF calls to be done synchronously (since we don't want to block the main UI thread), but is there any good way in VB.NET to keep all the code in-line when calling a WCF service? Is there some sort of wrapper that can
be used to call the WCF methods or another way? I know some of this is done easier in C#, but I'm having some issues with this being done in VB.NET.
Example In The VB.NET App I'm Converting:
Dim Customer As New Customer
If Customer.CheckIfCustomerExists(10) = True 'Calls the database, checks if Customer #10 exists
Dim CustomerNum As Integer = Customer.InsertNewCustomer("Customer Name")
In Silverlight This Woul
View Complete Post