protected void Dispose(bool disposing) { if (!_disposed) { try { //_service.Stop(); if (_server != null) { _server.ShutDownFisApiServer(); } _server = null; } catch (FisException) { } _disposed = true; } }
private void LaunchServer() { if (_server == null) { _server = FisApiServer.Instance(); } try { _server.EquipmentType = "ZHS"; // equipmenttype = ZCU _server.EquipmentId = "001"; // From Setup page /Equipemnt Name _server.LocationId = ""; // From Setup page/Line Location _server.UnitType = FisApiServer.UNIT_HGA; _server.EmployeeNumber = ""; // Optional, input before start } catch (FisException) { _server = null; String str = "Can not launch FISGetPutServer can not be started. No data will be sent to SeaTrack."; str += " Check that it is installed correctly."; throw new ParselException(str); } }