addFileConfig

Note: The base type of the resulting service is IConfig!For, so ensure that your dependency injected code asks for IConfig!For instead of AdapatableFileConfig!(For, Adapter).

  1. ServiceInfo addFileConfig(string fileName)
  2. ServiceInfo[] addFileConfig(ServiceInfo[] services, string fileName)
    ServiceInfo[]
    addFileConfig
    (
    For
    Adapter
    )
    (
    ref ServiceInfo[] services
    ,
    string fileName
    )

Return Value

Type: ServiceInfo[]

A Singleton ServiceInfo describing an AdapatableFileConfig that serialises the given For type, into a file using the provided Adapter type.

Meta