Extending Web Service Software Factory 2010

If you want to extend the service factory now you can use the new MEF extensibility features which basically means that you don;t need to crack open the factory designer and you can simply create your own VSIX extension and add custom features to the binary version of the factory.

This link show the basic steps to create your own extension.

Now the key setting to attach your extension to the factory is this:

Locate the "Adding a Shortcut Menu Command" section and replace the attribute [DslDefinitionModelCommandExtension] with these two attributes:

[Export(typeof(ICommandExtension))]

[ExportMetadata("ServiceContractDslExtensionFilter", null)] 

Now if you want to extend the DataContract designer simply change "ServiceContractDslExtensionFilter" with "DataContractDslExtensionFilter". The rest is the same as describerd in tyhe above article.

As you can see, you can extend menu commands, validation rules, mouse gestures and the model as well.

 

 

4 Comments

Comments have been disabled for this content.