12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Net;
- namespace nettyCommunication
- {
- public class ClientSettings
- {
- public static int Size
- {
- get
- {
- return int.Parse(ConfigurationTools.Configuration["size"]);
- }
- }
- public static IPAddress Host
- {
- get
- {
- string host = ConfigurationTools.Configuration["host"];//????????????
- return IPAddress.Parse(host);
- }
- }
- public static bool IsSsl
- {
- get
- {
- string ssl = ConfigurationTools.Configuration["ssl"];
- return !string.IsNullOrEmpty(ssl) && bool.Parse(ssl);
- }
- }
- public static int Port
- {
- get
- {
- return int.Parse(ConfigurationTools.Configuration["port"]);
- }
- }
- public static int GarageID
- {
- get
- {
- return int.Parse(ConfigurationTools.Configuration["garageID"]);
- }
- }
- }
- }
|