Provides services for load and validate configuration documents.
Default constructor
public Void ConfigurationDocumentService()
Enumerates a list of object configuration from specified document.
public IEnumerable<ObjectConfiguration> EnumerateObjectConfiguration(doc)
A collection of object configuration models from the specified document.
Name | Type | Summary |
---|---|---|
doc | XmlDocument | Factory configuration document. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when doc is null. |
Enumerates a list of package configuration from specified document.
public IEnumerable<PackageConfiguration> EnumeratePackageConfiguration(doc)
A collection of package configuration models from the specified document.
Name | Type | Summary |
---|---|---|
doc | XmlDocument | Package configuration document. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when doc is null. |
Gets the name of the application object factory specified in doc.
public String GetFactoryName(doc)
Configured name of the object factory.
Name | Type | Summary |
---|---|---|
doc | XmlDocument | Factory configuration document. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when doc is null. |
Loads stream into a XmlDocument applying validation to the stream against the object factory schema.
public XmlDocument LoadFactoryDocument(stream)
An object factory configuration document.
Name | Type | Summary |
---|---|---|
stream | Stream | Contents of the configuration document. |
Type | Summary |
---|---|
ContextConfigurationException | Thrown when the configuration document is not valid. |
Loads stream into a XmlDocument applying validation to the stream against the package schema.
public XmlDocument LoadPackageDocument(stream)
A package configuration document.
Name | Type | Summary |
---|---|---|
stream | Stream | Contents of the configuration document. |
Type | Summary |
---|---|
ContextConfigurationException | Thrown when the configuration document is not valid. |