DataWeb
Search Results for

    Show / Hide Table of Contents

    Interface IConfigurationService

    Provides a service for retrieving configuration settings.

    Namespace: DataWeb.Configuration
    Assembly: DataWeb.Core.dll
    Syntax
    public interface IConfigurationService

    Methods

    GetAppSetting(string)

    Retrieves a specific application setting value by its name.

    Declaration
    string GetAppSetting(string name)
    Parameters
    Type Name Description
    string name

    The name of the application setting.

    Returns
    Type Description
    string

    A string representing the value of the application setting.

    GetAppSetting<T>(string)

    Retrieves a specific application setting value by its name.

    Declaration
    T GetAppSetting<T>(string name)
    Parameters
    Type Name Description
    string name

    The name of the application setting.

    Returns
    Type Description
    T

    The value of the application setting.

    Type Parameters
    Name Description
    T

    GetAppSettings()

    Retrieves the application settings.

    Declaration
    ConfigurationAppSettings GetAppSettings()
    Returns
    Type Description
    ConfigurationAppSettings

    A ConfigurationAppSettings instance containing the application settings.

    GetSection(string)

    Retrieves a specific configuration section by its full name.

    Declaration
    IConfigurationSection GetSection(string fullName)
    Parameters
    Type Name Description
    string fullName

    The full name of the configuration section.

    Returns
    Type Description
    IConfigurationSection

    The configuration section.

    GetSetting(string)

    Retrieves a specific configuration setting value by its full name.

    Declaration
    string GetSetting(string fullName)
    Parameters
    Type Name Description
    string fullName

    The full name of the configuration setting.

    Returns
    Type Description
    string

    A string representing the value of the configuration setting.

    GetSetting<T>(string)

    Retrieves a specific configuration setting value by its full name.

    Declaration
    T GetSetting<T>(string fullName)
    Parameters
    Type Name Description
    string fullName

    The full name of the configuration setting.

    Returns
    Type Description
    T

    The value of the configuration setting.

    Type Parameters
    Name Description
    T
    In this article
    Back to top Generated by DocFX