Advertisement
Guest User

Untitled

a guest
Jun 4th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.26 KB | None | 0 0
  1.  
  2. namespace GTFS.Servers.Login
  3. {
  4.     public class LoginConfiguration : ConfigurationFramework
  5.     {
  6.         public LoginConfiguration()
  7.             : base("cfg.ini", false)
  8.         {
  9.             RequiredClientDate = base.GetValue("clientdate");
  10.             ServerName = base.GetValue("servername");
  11.             ServerIP = base.GetValue("serverip");
  12.             ChannelName = base.GetValue("channelname");
  13.             MSSQLUsername = base.GetValue("mssql_user");
  14.             MSSQLPassword = base.GetValue("mssql_passwd");
  15.             MSSQLAddress = base.GetValue("mssql_address");
  16.             MSSQLDatabase = base.GetValue("mssql_database");
  17.             MSSQLPort = (base.KeyExists("mssql_port") ? base.GetValueAsInt("mssql_port") : 2301);
  18.         }
  19.  
  20.         public string RequiredClientDate { get; private set; }
  21.         public string ServerName { get; private set; }
  22.         public string ServerIP { get; private set; }
  23.         public string ChannelName { get; private set; }
  24.         public string MSSQLUsername { get; private set; }
  25.         public string MSSQLPassword { get; private set; }
  26.         public string MSSQLAddress { get; private set; }
  27.         public string MSSQLDatabase { get; private set; }
  28.         public int MSSQLPort { get; private set; }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement