/// <summary> /// Constructor. /// </summary> /// <param name="logger">Logger via DI</param> /// <param name="sistema">SistemaDisp_ via DI</param> public ParkingService(ILogger <ParkingService> logger, SistemaDisp_ sistema, ContratosDisp_ contratos) { _logger = logger; _sistema = sistema; _contratos = contratos; _communicator = BuildCommunicator(); }
public FivetService(ILogger <FivetService> logger, TheSystemDisp_ theSystem, ContratosDisp_ contratos) { _logger = logger; _logger.LogDebug("Building FivetService .."); _theSystem = theSystem; _contratos = contratos; _communicator = buildCommunicator(); }
/// <summary> /// Fivet Service Constructor /// </summary> /// <param name="logger">Logger DI</param> public FivetService(ILogger <FivetService> logger, SistemaDisp_ sistema, ContratosDisp_ contratos) { _logger = logger; _logger.LogDebug("Building Fivet Service"); _contratos = contratos; _sistema = sistema; _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(); }