Skip to main content

Posts

Showing posts with the label IIS

Proper initialize/dispose with WCF and MEF

Initialization and disposing of services in a WCF application is a bit of a hassle to control when running on an IIS instance, since the application starts and stops every now and then based on server requests. It doesnt make it easier when using an IOC, as in our case MEF. To have total control of the startup and shutdown events we began with adding a service factory to all our WCF services. <%@ ServiceHost Language="C#" Debug="true" Service="WcfService" Factory="CustomServiceHostFactory" %> When ever the application gets woke up by a request to any of the services, the service factory will be used to instantiate the service. This means we can add any logic to these methods to have full control of the WCF application initialization. Here is what a service factory class could look like. (Composition is a static class containing a reference to the MEF container) public class CustomServiceHostFactory : ServiceHostFactory { priva...

Scott Guthrie in Stockholm

Today  Scott Guthrie  visited Stockholm and Chinateatern to talk about the news in Visual Studio 2010 , ASP.NET 4, ASP.NET MVC 2 och Silverlight 4. I could sum this up with just one word: awesome! As usual I get incredibly excited to get my hands on all of these new cool stuff and I am really longing for the release of  Visual Studio 2010  . Until further notice I have to settle with playing around with the beta 2 at home. I am not going to go through all of the news in the products, because it is available in so many other places, such as  Scott Guthrie's blog . He has among other things written a series of posts where he deals with the news in  Visual Studio 2010  . Much of what was shown today I have already seen or read about on various blogs, but one thing that I completely missed is the  IIS SEO Toolkit . It is simply a tool that is installed as an addition to IIS 7 and analyzes the search engine friendliness of any public web site a...