Using ObjectBuilder in background services

Topics: Web Client Software Factory
Jun 21, 2009 at 7:12 PM

I've successfully been using WCSF to build objects and service dependencies.  Now, I would like to make use of the same services in a background service (console application) that will run daily.  I've tried using WebClientApplicaiton.BuildWithCurrentContext to wire up my objects, but this doesn't work since the console app isn't in a web environment.  What is the suggested approach to get the same wiring up functionality with WCSF services in a console app?

Jun 22, 2009 at 5:15 AM

I would recommend you take a look at Unity

Jun 25, 2009 at 12:39 AM

Thanks for the feedback.  I ended up moving our background services into web services in one of our WCSF projects.  Now the background services don't contain any logic other than to call the web services.