This project is read-only.

<cfgSource> Element

The <cfgSource> element represents a DrillBit component that is used by the parent dependency resolver. At least one <cfgSource> element is required when using a dependency resolver that requires the usage of DrillBit components, such as the default dependency resolver.

Attributes

  • enabled - Optional. The value may be true or false. When true, the config source is enabled and may be read and parsed. When false, the config source is disabled it will act as though it does not exist in the configuration if an attempt is made to read and parse it.
  • key - Required. The key is used to uniquely identify the config source during error handling. It mus be unique within the parent DrillBit.
  • method - Required. The value must be one of the Drill.Extensibility.DrillBitConfigMethod enumeration values. Possible values include:
    • Default - The default configuration method of the DrillBit is used. The value attribute is not used.
    • ConfigFile - The default .NET config file (e.g. App.Config, Web.config) is used to configure the DrillBit. The value attribute is not used.
    • ConfigFileWithCustomLocation - A .NET config file in a custom location is used to configure the DrillBit. The value attribute must be the filename of the config file.
    • DrillBitSetup - A custom DrillBit setup implementation is used to configure the DrillBit. The value attribute must be an assembly-qualified type name to the type that implements the Drill.Extensibility.IDrillBitSetup interface that will be instantiated and executed.
    • XmlFile - An XML file is used to configure the DrillBit. The value attribute must be the filename of the XML file.
  • value - Optional or required depending on the value of the method attribute. See the definitions of the possible method attribute values above to determine if and how the value attribute value is used.

Child Elements

The <cfgSource> element has no supported child elements.

Parent Elements

The <cfgSource> element is contained within the <cfgSources> element.


Last edited Nov 21, 2012 at 3:49 AM by wreynolds, version 1

Comments

No comments yet.