IConfigurable service parameters

Topics: CAB & Smart Client Software Factory
Jun 16, 2006 at 11:17 PM
originally posted by: PauloMorgado

Most of my services being added in the CompositeUI/Services configuration section have a initializeData attribute.

The problem is that I can only get the initializeData attribute for the first service element.

In order to remove the attributes strongly typed the derived classes, the Microsoft.Practices.CompositeUI.Configuration.ParametersElement class only accounts for the first occorring attribute with a specified name.

OnDeserializeUnrecognizedAttribute should just return true and the derived classes should be responsible for removing the strongly typed attributes from the exposed Properties property.

Overriding DeserializeElement should be used to account for the declared attributes, I think.