Documentation Coverage Report
Current view: top level - Cqrs/Configuration - IConfigurationManager.cs Hit Total Coverage
Version: 4.0 Artefacts: 5 5 100.0 %
Date: 2019-11-24 03:15:41

          Line data    Source code
       1             : #region Copyright
       2             : // // -----------------------------------------------------------------------
       3             : // // <copyright company="Chinchilla Software Limited">
       4             : // //   Copyright Chinchilla Software Limited. All rights reserved.
       5             : // // </copyright>
       6             : // // -----------------------------------------------------------------------
       7             : #endregion
       8             : 
       9             : namespace Cqrs.Configuration
      10             : {
      11             :         /// <summary>
      12             :         /// Provides access to configuration settings.
      13             :         /// </summary>
      14             :         public interface IConfigurationManager
      15             :         {
      16             :                 /// <summary>
      17             :                 /// Read the setting named <paramref name="key"/>.
      18             :                 /// </summary>
      19             :                 /// <param name="key">The key (or name) of the setting to read.</param>
      20           1 :                 string GetSetting(string key);
      21             : 
      22             :                 /// <summary>
      23             :                 /// Read the setting named <paramref name="key"/>.
      24             :                 /// </summary>
      25             :                 /// <param name="key">The key (or name) of the setting to read.</param>
      26             :                 /// <param name="value">When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.</param>
      27             :                 /// <returns>true if the an element with the specified key exists; otherwise, false.</returns>
      28           1 :                 bool TryGetSetting(string key, out string value);
      29             : 
      30             :                 /// <summary>
      31             :                 /// Read the setting named <paramref name="key"/>.
      32             :                 /// </summary>
      33             :                 /// <param name="key">The key (or name) of the setting to read.</param>
      34             :                 /// <param name="value">When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.</param>
      35             :                 /// <returns>true if the an element with the specified key exists; otherwise, false.</returns>
      36           1 :                 bool TryGetSetting(string key, out bool value);
      37             : 
      38             :                 /// <summary>
      39             :                 /// Read the configuration string named <paramref name="connectionStringName"/>.
      40             :                 /// </summary>
      41             :                 /// <param name="connectionStringName">The name (or key) of the connection string to read.</param>
      42           1 :                 string GetConnectionString(string connectionStringName);
      43             : 
      44             :                 /// <summary>
      45             :                 /// Read the configuration string where the name (or key) of the connection string is stored in a setting, first obtained with a call to <see cref="GetSetting(string)"/>
      46             :                 /// </summary>
      47             :                 /// <param name="key">The key (or name) of the setting that has the name (or key) of the connection string to read.</param>
      48           1 :                 string GetConnectionStringBySettingKey(string key);
      49             :         }
      50             : }

Generated by: LCOV version 1.13