jb's Blog
Introduction to WCF
Tagged as UncategorizedThanks to everyone who came along last night – it was a very enjoyable DNUG session
As mentioned, here is the code we developed during the session, so all of those little nuggets we talked about squirreling away can be found within.
If you have any queries feel free to ping me an email.
Jeremy
6 Responses to “Introduction to WCF”
Leave a Reply
![]()
LightSpeed (6)
MVC (9)
News (4)
Presentations (3)
Ruby (1)
Silverlight (1)
Software Development (1)
SQL Server (2)
Uncategorized (2)
![]()
March 2010
April 2009
March 2009
February 2009
December 2008
November 2008



Posted by Jeremy Boyd on 29 April 2010
hey…
Just looking at the code…
in your MembershipService class you have decorated it with [UnitOfWorkPerCallBehavior]
then in each method you start a unit of work? Is that right?
Indeed, except if you have a look the Authenticate method has been refactored to take advantage of this. In the session the sample was built up progressively, so the original implementation was around using the explicit UOW construction, we refactored it around the time the pizza arrived to take advantage of the custom behavior – such time pressures dictates we only refactor one method to prove the point
To complete the work, just strip the explicit UOW construction in the other methods and use the UnitOfWork as supplied from the ServiceBase
Jeremy
sweet
my world of pain started when I wanted to do “username/password” authenticated WCF webservices.
Slightly off topic. Why do you use an Apple Mac, and how are you running windows?
Hi Darryl,
We bought a number of them at Mindscape a few years ago because we were doing some iPhone/Mac development and they could also dual boot Windows since we primarily do .NET development. (And they are shiny). We all also have desktop machines at work.
I run Windows by dual booting it