WCF confusion

WCF confusion

Old forum URL: forums.lhotka.net/forums/t/10094.aspx

hector posted on Monday, February 21, 2011

I've used CSLA back when it first came out in the COM/VB version. I've bought the books for C# 2005 and C# 2008. I've been a big fan of this framework, but I haven't had the chance to use it again, until now. I just got hired into a new position, and I'm pushing really hard to get CSLA.NET 4+ adopted in our shop. The shop is on the VS2010 stack.

I've read most of the ebooks from the series that Rocky is writing. I'm finishing the Data Access pdf. One thing that I haven't figured out is where do WCF fits in. I search the forums, but didn't find anything that answers my question. It looks like there are several assumptions that I'm missing.

I'm guessing (from the samples) that WCF is being used in the DataPortal. I would appreciate if I could get help in sorting this out.



RockfordLhotka replied on Monday, February 21, 2011

WCF fits into the picture in three ways.

First, the data portal can use WCF as a network transport. Most (probably all) of my n-tier examples use WcfProxy and WcfPortal, and therefore are using WCF behind the scenes.

Second, you can create a WCF service interface on top of CSLA objects. Chapter 21 of the "Expert 2008 Business Objects" book discusses this scenario.

Third, you can create a "1-tier app" that runs on the client, with a local data portal (so the data portal runs on the client), where your data portal methods invoke remote services through WCF. This is how you create an SOA edge application.

And I suppose another option is that you could create a service interface with one set of CSLA objects on the server, and then also create an edge application with different CSLA objects that invoke that service. So four ways total :)

hector replied on Wednesday, February 23, 2011

Thanks! This exactly what I needed.

Copyright (c) Marimer LLC