forked from dotnet-foundation/website
-
Notifications
You must be signed in to change notification settings - Fork 2
/
AppSettings.cs
35 lines (22 loc) · 1.64 KB
/
AppSettings.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
using System;
using System.Configuration;
namespace DotnetFoundationWeb
{
public static class AppSettings
{
public static string ContactEmail { get; set; } = ConfigurationManager.AppSettings["ContactEmail"];
public static string Title { get; set; } = ConfigurationManager.AppSettings["SiteTitle"];
public static string Description { get; set; } = ConfigurationManager.AppSettings["SiteDescription"];
public static string BaseRef { get; set; } = ConfigurationManager.AppSettings["BaseRef"];
public static string ServerUrl { get; set; } = ConfigurationManager.AppSettings["ServerUrl"];
public static bool IsCampaignOpen { get; set; }
= string.Equals(ConfigurationManager.AppSettings["IsCampaignOpen"], "true", StringComparison.OrdinalIgnoreCase);
public static string AzureSearchQueryKey { get; set; } = ConfigurationManager.AppSettings["AzureSearchQueryKey"];
public static int ContributionsCounter { get; set; } = int.Parse(ConfigurationManager.AppSettings["ContributionsCounter"]);
public static int CompaniesCounter { get; set; } = int.Parse(ConfigurationManager.AppSettings["CompaniesCounter"]);
public static int ActiveProjectsCounter { get; set; } = int.Parse(ConfigurationManager.AppSettings["ActiveProjectsCounter"]);
public static int ResourcesCounter { get; set; } = int.Parse(ConfigurationManager.AppSettings["ResourcesCounter"]);
public static string GoogleAnalytics { get; set; } = ConfigurationManager.AppSettings["GoogleAnalytics"];
public static string Lang { get; set; } = ConfigurationManager.AppSettings["Lang"];
}
}