-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathConfigurationSection.cs
35 lines (31 loc) · 1.17 KB
/
ConfigurationSection.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (C) 2011 Xtensive LLC.
// All rights reserved.
// For conditions of distribution and use, see license.
// Created by: Dmitri Maximov
// Created: 2012.07.06
using System.Configuration;
namespace Xtensive.Orm.Localization.Configuration
{
/// <summary>
/// A root element of localization configuration section within a configuration file.
/// </summary>
public class ConfigurationSection : System.Configuration.ConfigurationSection
{
/// <summary>
/// Gets default section name for security configuration.
/// Value is "Xtensive.Orm.Localization".
/// </summary>
public static readonly string DefaultSectionName = "Xtensive.Orm.Localization";
private const string DefaultCultureElementName = "defaultCulture";
/// <summary>
/// Gets or sets the authentication service.
/// </summary>
/// <value>The authentication service.</value>
[ConfigurationProperty(DefaultCultureElementName, IsRequired = false)]
public DefaultCultureConfigurationElement DefaultCulture
{
get { return (DefaultCultureConfigurationElement) this[DefaultCultureElementName]; }
set { this[DefaultCultureElementName] = value; }
}
}
}