forked from dotnet-foundation/website
-
Notifications
You must be signed in to change notification settings - Fork 1
/
AppSettings.cs
37 lines (24 loc) · 1.69 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
36
37
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Text;
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"];
}
}