Freigeben über


WinFX February CTP is released!

GREAT NEWS! The WinFX February CTP has just been released today and can be downloaded from here. Here is the readme document. This CTP has consumed a lot of customer feedback and thus brings quite a lot of breaking changes over the January one. The detailed WCF breaking changes can be found here. The changes include namespaces, APIs, configuration, setup, etc. Ed Pinto has a quick blog entry on this.

 

The biggest change to WebHost is that the .svc file format is changed. This was actually reflected in my earlier blog entries.

Before:

<%@Service language="C#" Debug="true" class="Microsoft.ServiceModel.Samples.CalculatorService" %>

After:

<%@ServiceHost language="C#" Debug="true" Service="Microsoft.ServiceModel.Samples.CalculatorService" %>

You can also use the factory model to create your own ServiceHost with the following advanced syntax:

<%@ServiceHost language="C#" Debug="true" Factory="Microsoft.ServiceModel.Samples.CalculatorServiceHostFactory" Service="Microsoft.ServiceModel.Samples.CalculatorService" %>

The Visual Studio CTP for this WinFX can be found at this link.

The WinFX SDK is also released as part of the larger Windows SDK which includes pre-release documentation, samples, and tools for both Win32® and WinFX® in Windows Vista.

Comments

  • Anonymous
    February 22, 2006
    If you use the Factory attribute do you really also need the Service attribute? If so, why?
  • Anonymous
    March 28, 2006
    Yes, you do. Sometimes you want to use a single ServiceHostFactory to create different ServiceHostBase. The "Service" attribute provides the differentiation information. It can be passed into the derived class of ServiceHostBase as well. Note that it does not have to be a CLR type.