1. The contract and service implementation are in the Csla.Server.Hosts namespace in the Csla.dll assembly
2. WcfHost is an example of a WCF service project that hosts the data portal. You can create a svc file and web.config entries in almost any web site (as long as Csla.dll is in the bin directory) and host the data portal. There's nothing special about WcfHost.
3. You can secure the data portal using SSL or a custom certificate. That's relatively easy because it is just WCF configuration (though WCF configuration is rarely easy).
The data portal doesn't normally support the concept of passing custom credentials from the client, so the credentials are validated by WCF itself. If you really need to do that you will probably need to create your own custom WcfHost class. This is possible, but is an advanced scenario.
4. No, the .NET data portal does not have the same extensibility option for compression that we built for the Silverlight data portal. This is because there are other compression options in WCF that you can use, by purchasing (or building) a custom WCF binding that does compression.
However, several people have asked if I would enhance the .NET data portal to support compression, because it seems simpler and cheaper to use the technique we built for Silverlight, and so I may add this feature to .NET in the future.
This is discussed in the FAQ and you can see it in action in the
InventoryDemo sample. If you want a more complete walk-through, check out the CSLA
.NET for Silverlight video series.
FAQ; www.lhotka.net/cslanet/faq/
Samples: www.lhotka.net/cslalight/download.aspx
Video series: http://store.lhotka.net
Rocky
From: NickyLarson
[mailto:cslanet@lhotka.net]
Sent: Saturday, July 11, 2009 6:55 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] doubts about the DataPortal Mobile Object
Hello Rocky.
Can I ask you for a complete example CSLA.NET data portal to support
compression (WCF) if you don´t mind, or maybe can you show me some useful
links, anythings that can show me the way.
I hope that this request has not upset you, if so my
apologize.
Paulo
Oh, compression for the .NET data portal?
I don’t have an example. CSLA doesn’t handle this –
any compression would be purely at the WCF level.
In other words, you’d need to find/buy a WCF binding that
does compression and use that instead of wsHttpBinding or basicHttpBinding.
Rocky
I thought Andres built a compression module for the dataportal a while back. Do a search of the forum for XAL (Andres' user name) and compression.
Joe
Copyright (c) Marimer LLC