root/trunk/TruckExpoCDN/ConnString.cs @ 479

Wersja 479, 0.8 KB (wprowadzona przez marek, 17 years temu)

re #134

RevLine 
[479]1using System.Configuration;
[415]2
3namespace ExportFaktur
4{
[479]5    public class ConnString
[415]6    {
[479]7        public static string BazaReklamConnection
[415]8        {
[479]9            get
10            {
11                return ConfigurationManager.AppSettings["BazaReklam.Connection"];
12            }
[415]13        }
14
[479]15        public static string CDNConnection
[415]16        {
[479]17            get
18            {
19                return ConfigurationManager.AppSettings["CDN.Connection"];
20            }
[415]21        }
[479]22
[415]23        private static ConnString connectionString;
24
[479]25        private ConnString()
26        {
[415]27        }
28
29        public static ConnString getConnString()
30        {
[479]31            if (connectionString == null)
32            {
[415]33                connectionString = new ConnString();
[479]34            }
[415]35            return connectionString;
[479]36        }
[415]37    }
[479]38}
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.