public FivetService(ILogger <FivetService> logger, TheSystemDisp_ theSystem, ContratosDisp_ contratos) { _logger = logger; _logger.LogDebug("Building FivetService .."); _theSystem = theSystem; _contratos = contratos; _communicator = buildCommunicator(); }
/// <summary> /// The Constructor /// </summary> /// <param name="logger"></param> /// <param name="theSystem"></param> /// <param name="contratos"></param> public ServerParkingUCNService(ILogger <ServerParkingUCNService> logger, TheSystemDisp_ theSystem, ContratosDisp_ contratos) { IPHostEntry host; string localIP = ""; host = Dns.GetHostEntry(Dns.GetHostName()); foreach (IPAddress ip in host.AddressList) { if (ip.AddressFamily.ToString() == "InterNetwork") { localIP = ip.ToString(); } } _logger = logger; _logger.LogDebug("Building ServerParkingUCNService .."); _logger.LogDebug(localIP); _logger.LogDebug("dato" + _port); _theSystem = theSystem; _contratos = contratos; _communicator = buildComunicator(); }