ServiceUrls: - temporary remapped

This commit is contained in:
Thomas Wiedebusch
2025-09-17 11:22:27 +02:00
parent 39620f10e0
commit de62764b9c
2 changed files with 129 additions and 163 deletions
@@ -9,217 +9,183 @@ namespace Xylem.Common.CommonCore.Configuration
/// </summary> /// </summary>
public static class ServiceUrls public static class ServiceUrls
{ {
private const String ServerDns = "http://sla12iis01.emea.sensus.net";
//public const String ServerDns = "https://delaz1web01.world.fluidtechnology.net";
private const String DefaultInspectCordonelRequirementInfoUrl = private static readonly String DefaultInspectCordonelRequirementInfoUrl =
"http://sla12iis01.emea.sensus.net/LaaProductionWeb/"; $"{ServerDns}/LaaProductionWeb/";
// return code: 404 not found, 400 Error with text, 200 okay // return code: 404 not found, 400 Error with text, 200 okay
private const String DefaultEolDataForSentinelServiceUrl = private static readonly String DefaultEolDataForSentinelServiceUrl =
"http://sla12iis01.emea.sensus.net/LaaProductionWeb/api/cordonel/eolprogress/"; $"{ServerDns}/LaaProductionWeb/api/cordonel/eolprogress/";
private const String DefaultGetPcbIdsFromSafeServiceUrl = private static readonly String DefaultGetPcbIdsFromSafeServiceUrl =
"http://delaz1web01/MeterProcessState/GetPcbIdsFromSafe?ContainerDbId="; $"{ServerDns}/MeterProcessState/GetPcbIdsFromSafe?ContainerDbId=";
private const String DefaultAddPcbIdsToSafeServiceUrl = private static readonly String DefaultAddPcbIdsToSafeServiceUrl =
"http://delaz1web01/MeterProcessState/AddPcbIdsToSafe?ContainerDbId="; $"{ServerDns}/MeterProcessState/AddPcbIdsToSafe?ContainerDbId=";
private const String DefaultGetOrderOverviewServiceUrl = private static readonly String DefaultGetOrderOverviewServiceUrl =
"http://delaz1web01/MeterProcessState/api/FinalCheck/GetOrderOverview?ProductionOrderNumber="; $"{ServerDns}/MeterProcessState/api/FinalCheck/GetOrderOverview?ProductionOrderNumber=";
private const String DefaultDownloadFilesPartsServiceUrl = private static readonly String DefaultDownloadFilesPartsServiceUrl =
"http://delaz1web01/MeterProcessState/api/FileUpToDate/GetFileParts?ParentFileId="; $"{ServerDns}/MeterProcessState/api/FileUpToDate/GetFileParts?ParentFileId=";
private const String DefaultGetLutUrl = private static readonly String DefaultGetLutUrl =
"http://delaz1web01/MeterProcessState/api/FileUpToDate/GetLutFiles"; $"{ServerDns}/MeterProcessState/api/FileUpToDate/GetLutFiles";
private const String DefaultListAllFwPackagesServiceUrl = private static readonly String DefaultListAllFwPackagesServiceUrl =
"http://delaz1web01/MeterProcessState/api/FileUpToDate/GetFwFiles?FileIsForDeveloperOnly=false&FileCategoryID=1"; $"{ServerDns}/MeterProcessState/api/FileUpToDate/GetFwFiles?FileIsForDeveloperOnly=false&FileCategoryID=1";
private const String DefaultListAllSwPackagesServiceUrl = private static readonly String DefaultListAllSwPackagesServiceUrl =
"http://delaz1web01/MeterProcessState/api/FileUpToDate/GetFwFiles?FileIsForDeveloperOnly=false&FileCategoryID=5"; $"{ServerDns}/MeterProcessState/api/FileUpToDate/GetFwFiles?FileIsForDeveloperOnly=false&FileCategoryID=5";
private const String DefaultListAllConfigFilePackagesServiceUrl = private static readonly String DefaultListAllConfigFilePackagesServiceUrl =
"http://delaz1web01/MeterProcessState/api/FileUpToDate/GetFwFiles?FileIsForDeveloperOnly=false&FileCategoryID=6"; $"{ServerDns}/MeterProcessState/api/FileUpToDate/GetFwFiles?FileIsForDeveloperOnly=false&FileCategoryID=6";
private const String DefaultListAllFwUpdateSafesServiceUrl = private static readonly String DefaultListAllFwUpdateSafesServiceUrl =
"http://delaz1web01/MeterProcessState/api/FileUpToDate/GetFwFiles?FileIsForDeveloperOnly=false&FileCategoryID=4"; $"{ServerDns}/MeterProcessState/api/FileUpToDate/GetFwFiles?FileIsForDeveloperOnly=false&FileCategoryID=4";
private const String DefaultSetCordonelAppVersionServiceUrl = private static readonly String DefaultSetCordonelAppVersionServiceUrl =
"http://delaz1web01/MeterProcessState/api/ProccesState/SetCordonelProgress?PcbId="; $"{ServerDns}/MeterProcessState/api/ProccesState/SetCordonelProgress?PcbId=";
private const String DefaultGetCordonelRequirementInfoUrl = private static readonly String DefaultGetCordonelRequirementInfoUrl =
"http://sla12iis01.emea.sensus.net/LaaProductionWeb/api/cordonel/requirements/pcbid/"; $"{ServerDns}/LaaProductionWeb/api/cordonel/requirements/pcbid/";
private const String DefaultGetCordonelAppVersionServiceUrl = private static readonly String DefaultGetCordonelAppVersionServiceUrl =
"http://delaz1web01/MeterProcessState/api/ProccesState/GetCordonelAppVersion?PcbId="; $"{ServerDns}/MeterProcessState/api/ProccesState/GetCordonelAppVersion?PcbId=";
private const String DefaultListAllCordonelCustomersWithFilterServiceUrl = private static readonly String DefaultListAllCordonelCustomersWithFilterServiceUrl =
"http://delaz1web01/MeterProcessState/api/Order/GetCordonelCustomers?FilterName="; $"{ServerDns}/MeterProcessState/api/Order/GetCordonelCustomers?FilterName=";
private const String DefaultListAllCordonelCustomerOrdersServiceUrl = private static readonly String DefaultListAllCordonelCustomerOrdersServiceUrl =
"http://delaz1web01/MeterProcessState/api/Order/GetCustomersCordonelOrders?CustomerNumber="; $"{ServerDns}/MeterProcessState/api/Order/GetCustomersCordonelOrders?CustomerNumber=";
private const String DefaultListCordonelOrderDetailsServiceUrl = private static readonly String DefaultListCordonelOrderDetailsServiceUrl =
"http://delaz1web01/MeterProcessState/api/Order/GetCordonelOrderDetails?OrderNr="; $"{ServerDns}/MeterProcessState/api/Order/GetCordonelOrderDetails?OrderNr=";
private const String DefaultListAllOrderCordonelsServiceUrl = private static readonly String DefaultListAllOrderCordonelsServiceUrl =
"http://delaz1web01/MeterProcessState/api/Order/GetCordonelOrderList?CustomerOrderNumber="; $"{ServerDns}/MeterProcessState/api/Order/GetCordonelOrderList?CustomerOrderNumber=";
private const String DefaultDownloadFwUpdateSafeServiceUrl = private static readonly String DefaultDownloadFwUpdateSafeServiceUrl =
"http://delaz1web01/MeterProcessState/GetFWUpdateSafeContainerContent?SafeContainerId="; $"{ServerDns}/MeterProcessState/GetFWUpdateSafeContainerContent?SafeContainerId=";
private const String DefaultListAllFwUpdateSafesForUserServiceUrl = private static readonly String DefaultListAllFwUpdateSafesForUserServiceUrl =
"http://delaz1web01/MeterProcessState/GetFWUpdateSafeContainers?UserId="; $"{ServerDns}/MeterProcessState/GetFWUpdateSafeContainers?UserId=";
private const String DefaultFileContentDownloadServiceUrl = private static readonly String DefaultFileContentDownloadServiceUrl =
"http://delaz1web01/MeterProcessState/GetFileContent?FileId="; $"{ServerDns}/MeterProcessState/GetFileContent?FileId=";
private const String DefaultFwUpdateReportUploadServiceUrl = private static readonly String DefaultFwUpdateReportUploadServiceUrl =
"http://delaz1web01/MeterProcessState/PostFWUpdateReportFile"; $"{ServerDns}/MeterProcessState/PostFWUpdateReportFile";
private const String DefaultFwUpdateReportDownloadServiceUrl = private static readonly String DefaultFwUpdateReportDownloadServiceUrl =
"http://delaz1web01/MeterProcessState/GetFWUpdateReportFile?"; $"{ServerDns}/MeterProcessState/GetFWUpdateReportFile?";
private const String DefaultFwUpdateSafeContainerUploadServiceUrl = private static readonly String DefaultFwUpdateSafeContainerUploadServiceUrl =
"http://delaz1web01/MeterProcessState/PostFWUpdateSafeOdd"; $"{ServerDns}/MeterProcessState/PostFWUpdateSafeOdd";
private const String DefaultEditFwUpdateUserValidityServiceUrl = private static readonly String DefaultEditFwUpdateUserValidityServiceUrl =
"http://delaz1web01/MeterProcessState/EditUserValidity?Id="; $"{ServerDns}/MeterProcessState/EditUserValidity?Id=";
private const String DefaultRefreshFwUpdateUsersHardwareIdServiceUrl = private static readonly String DefaultRefreshFwUpdateUsersHardwareIdServiceUrl =
"http://delaz1web01/MeterProcessState/RefreshUsersHardwareId?Id="; $"{ServerDns}/MeterProcessState/RefreshUsersHardwareId?Id=";
private const String DefaultRefreshFwUpdateUsersPasswordHashServiceUrl = private static readonly String DefaultRefreshFwUpdateUsersPasswordHashServiceUrl =
"http://delaz1web01/MeterProcessState/RefreshUsersPasswordHash?Id="; $"{ServerDns}/MeterProcessState/RefreshUsersPasswordHash?Id=";
private const String DefaultCreateNewFwUpdateUserServiceUrl = private static readonly String DefaultCreateNewFwUpdateUserServiceUrl =
"http://delaz1web01/MeterProcessState/AddNewUser?"; $"{ServerDns}/MeterProcessState/AddNewUser?";
private const String DefaultListAllFwUpdateUsersServiceUrl = private static readonly String DefaultListAllFwUpdateUsersServiceUrl =
"http://delaz1web01/MeterProcessState/GetUserList"; $"{ServerDns}/MeterProcessState/GetUserList";
private const String DefaultListAllFwUpdateBuilderOperatorsServiceUrl = private static readonly String DefaultListAllFwUpdateBuilderOperatorsServiceUrl =
"http://delaz1web01/MeterProcessState/GetAllBuilderOperator"; $"{ServerDns}/MeterProcessState/GetAllBuilderOperator";
private const String DefaultGetFwUpdateUserByIdServiceUrl = private static readonly String DefaultGetFwUpdateUserByIdServiceUrl =
"http://delaz1web01/MeterProcessState/GetUserList?Id="; $"{ServerDns}/MeterProcessState/GetUserList?Id=";
private const String DefaultGetFwUpdateUserByLoginNameServiceUrl = private static readonly String DefaultGetFwUpdateUserByLoginNameServiceUrl =
"http://delaz1web01/MeterProcessState/GetUserList?LogInName="; $"{ServerDns}/MeterProcessState/GetUserList?LogInName=";
private const String DefaultRegisterWatchServiceUrl = private static readonly String DefaultRegisterWatchServiceUrl =
"http://delaz1web01/MeterProcessState/api/RegisterWatch/"; $"{ServerDns}/MeterProcessState/api/RegisterWatch/";
private const String DefaultGenesisGetOrderNumberServiceUrl = private static readonly String DefaultGenesisGetOrderNumberServiceUrl =
"http://delaz1web01/MeterProcessState/api/Password/ordernumber?PcbId="; $"{ServerDns}/MeterProcessState/api/Password/ordernumber?PcbId=";
private const String DefaultGenesisGetRadioAddressServiceUrl = private static readonly String DefaultGenesisGetRadioAddressServiceUrl =
"http://delaz1web01/MeterProcessState/api/Password/radioadress?PcbId="; $"{ServerDns}/MeterProcessState/api/Password/radioadress?PcbId=";
private const String DefaultGenesisGetKeySetIdServiceUrl = private static readonly String DefaultGenesisGetKeySetIdServiceUrl =
"http://delaz1web01/MeterProcessState/api/Password/getkeysetid?PcbId="; $"{ServerDns}/MeterProcessState/api/Password/getkeysetid?PcbId=";
private const String DefaultGenesisGetPasswordServiceUrl = private static readonly String DefaultGenesisGetPasswordServiceUrl =
"http://delaz1web01/MeterProcessState/api/Password/GetPassword?PcbId="; $"{ServerDns}/MeterProcessState/api/Password/GetPassword?PcbId=";
private const String DefaultGenesisSetPasswordServiceUrl = private static readonly String DefaultGenesisSetPasswordServiceUrl =
"http://delaz1web01/MeterProcessState/api/Password/setpassword?PcbId="; $"{ServerDns}/MeterProcessState/api/Password/setpassword?PcbId=";
private const String DefaultGenesisPasswordContainerServiceUrl = private static readonly String DefaultGenesisPasswordContainerServiceUrl =
"http://delaz1web01/MeterProcessState/api/Password/GetPasswordHashFileContent?PcbId="; $"{ServerDns}/MeterProcessState/api/Password/GetPasswordHashFileContent?PcbId=";
private const String DefaultMarriageServiceUrl = private static readonly String DefaultMarriageServiceUrl =
"http://delaz1web01/MeterProcessState/api/Marriage/"; $"{ServerDns}/MeterProcessState/api/Marriage/";
private const String DefaultMeterProcessStateUrl = private static readonly String DefaultMeterProcessStateUrl =
"http://delaz1web01/MeterProcessState/api/ProccesState/"; $"{ServerDns}/MeterProcessState/api/ProccesState/";
private const String DefaultGenesisFinalCheckServiceUrl = private static readonly String DefaultGenesisFinalCheckServiceUrl =
"http://delaz1web01/MeterProcessState/api/FinalCheck/"; $"{ServerDns}/MeterProcessState/api/FinalCheck/";
private const String DefaultGenesisRadioCheckServiceUrl = private static readonly String DefaultGenesisRadioCheckServiceUrl =
"http://delaz1web01/MeterProcessState/api/RadioCheck/"; $"{ServerDns}/MeterProcessState/api/RadioCheck/";
private const String DefaultGetSoftwareStartUpAccessUrl = private static readonly String DefaultGetSoftwareStartUpAccessUrl =
"http://delaz1web01/MeterProcessState/api/SoftwareAccess/GetVersionIsValid"; $"{ServerDns}/MeterProcessState/api/SoftwareAccess/GetVersionIsValid";
private const String DefaultSetSoftwareLicenseUrl = private static readonly String DefaultSetSoftwareLicenseUrl =
"http://delaz1web01/MeterProcessState/api/SoftwareAccess/SetVersionIsValid?Program="; $"{ServerDns}/MeterProcessState/api/SoftwareAccess/SetVersionIsValid?Program=";
private const String DefaultGetSoftwareLicenseUrl = private static readonly String DefaultGetSoftwareLicenseUrl =
"http://delaz1web01/MeterProcessState/api/SoftwareAccess/GetCurrentVersion?Program="; $"{ServerDns}/MeterProcessState/api/SoftwareAccess/GetCurrentVersion?Program=";
private const String DefaultGenesisCalibrationResult = private static readonly String DefaultGenesisCalibrationResult =
"http://delaz1web01/MeterProcessState/api/GenesisMeter/PostCalibrationResult"; $"{ServerDns}/MeterProcessState/api/GenesisMeter/PostCalibrationResult";
private const String DefaultGetGenesisCalibrationResults = private static readonly String DefaultGetGenesisCalibrationResults =
"http://delaz1web01/MeterProcessState/api/FinalCheck/CalibrationResults/"; $"{ServerDns}/MeterProcessState/api/FinalCheck/CalibrationResults/";
private const String DefaultGenesisMeter = private static readonly String DefaultGenesisMeter =
"http://delaz1web01/MeterProcessState/api/GenesisMeter/"; $"{ServerDns}/MeterProcessState/api/GenesisMeter/";
private const String DefaultFileContentController = private static readonly String DefaultFileContentController =
"http://delaz1web01/MeterProcessState/api/FileUpToDate/"; $"{ServerDns}/MeterProcessState/api/FileUpToDate/";
private const String DefaultKeyServerCustom = private static readonly String DefaultKeyServerCustom =
"https://nodes.sms-esaap.com/keygenproxy/api/v3/custom/"; "https://nodes.sms-esaap.com/keygenproxy/api/v3/custom/";
private const String DefaultMeterInfoForTestBench = private static readonly String DefaultMeterInfoForTestBench =
"http://delaz1web01/MeterProcessState/api/TestBench/GetMeterInfoForTestBench?PcbID="; $"{ServerDns}/MeterProcessState/api/TestBench/GetMeterInfoForTestBench?PcbID=";
private const String DefaultCordonelFwInfoUrl = private static readonly String DefaultCordonelFwInfoUrl =
"http://delaz1web01/MeterProcessState/api/FileUpToDate/GetCordonelFw"; $"{ServerDns}/MeterProcessState/api/FileUpToDate/GetCordonelFw";
private const String DefaultDbDataAtEolServiceUrl = private static readonly String DefaultDbDataAtEolServiceUrl =
"http://delaz1web01/MeterProcessState/api/fwupdate/databaseateol/"; $"{ServerDns}/MeterProcessState/api/fwupdate/databaseateol/";
//private const String DefaultGenesisGetOrderNumberServiceUrl = public static readonly String PressureSensorTestURL_GetTestSpec
// "http://localhost:56011/api/Password/ordernumber?PcbId="; = $"{ServerDns}/MeterProcessState/api/CordonelPressureSensorTest/GetTestSpec";
//private const String DefaultGenesisGetRadioAdressServiceUrl = public static readonly String PressureSensorTestURL_PostTestResults
// "http://localhost:56011/api/Password/radioadress?PcbId="; = $"{ServerDns}/MeterProcessState/api/CordonelPressureSensorTest/PostTestResults";
//private const String DefaultGenesisGetKeySetIdServiceUrl =
// "http://localhost:56011/api/Password/getkeysetid?PcbId=";
//private const String DefaultGenesisGetPasswordServiceUrl =
// "http://localhost:56011/api/Password/GetPassword?PcbId=";
//private const String DefaultGenesisSetPasswordServiceUrl =
// "http://localhost:56011/api/Password/setpassword?PcbId=";
//private const String DefaultGenesisPasswordContainerServiceUrl =
// "http://localhost:56011/api/Password/GetPasswordHashFileContent?PcbId=";
//private const String DefaultMarriageServiceUrl =
// "http://localhost:56011/api/Marriage/";
//private const String DefaultMeterProcessStateUrl =
// "http://localhost:56011/api/ProccesState/";
//private const String DefaultGenesisFinalCheckServiceUrl =
// "http://localhost:56011/api/FinalCheck/";
//private const String DefaultGenesisRadioCheckServiceUrl =
// "http://localhost:56011/api/RadioCheck/";
//private const String DefaultGetSoftwareStartUpAccessUrl =
// "http://localhost:56011/api/SoftwareAccess/GetVersionIsValid";
private const String PressureSensorTestURL_GetTestSpec
= "http://delaz1web01/MeterProcessState/api/CordonelPressureSensorTest/GetTestSpec";
private const String PressureSensorTestURL_PostTestResults
= "http://delaz1web01/MeterProcessState/api/CordonelPressureSensorTest/PostTestResults";
/// <summary> /// <summary>
/// usage: string.Format(CordonelPressureSensorTestURL_GetTestResults, pcbId); /// usage: string.Format(CordonelPressureSensorTestURL_GetTestResults, pcbId);
/// </summary> /// </summary>
private const String PressureSensorTestURL_GetTestResults public static readonly String PressureSensorTestURL_GetTestResults
= "http://delaz1web01/MeterProcessState/api/CordonelPressureSensorTest/GetTestResults/{0}"; = $"{ServerDns}/MeterProcessState/api/CordonelPressureSensorTest/GetTestResults/{0}";
public const String LaaProductionAPI public const String LaaProductionAPI
#if DEBUG == false // when false uses always the production url. #if DEBUG == false // when false uses always the production url.
@@ -232,7 +198,7 @@ namespace Xylem.Common.CommonCore.Configuration
/// <summary> /// <summary>
/// GET: test specification for water meter with pressure sensor. /// GET: test specification for water meter with pressure sensor.
/// </summary> /// </summary>
public static string GetPressureSensorSpecificationURL public static String GetPressureSensorSpecificationURL
#if DEBUG #if DEBUG
=> "http://localhost:56011/api/CordonelPressureSensorTest/GetTestSpec"; => "http://localhost:56011/api/CordonelPressureSensorTest/GetTestSpec";
#else #else
@@ -243,7 +209,7 @@ namespace Xylem.Common.CommonCore.Configuration
/// <summary> /// <summary>
/// POST: test result for water meter with pressure sensor. /// POST: test result for water meter with pressure sensor.
/// </summary> /// </summary>
public static string PostPressureSensorResultURL public static String PostPressureSensorResultURL
#if DEBUG #if DEBUG
=> "http://localhost:56011/api/CordonelPressureSensorTest/PostTestResults"; => "http://localhost:56011/api/CordonelPressureSensorTest/PostTestResults";
@@ -256,7 +222,7 @@ namespace Xylem.Common.CommonCore.Configuration
/// <summary> /// <summary>
/// GET: a list of test results for the water meter with specified pcbId. /// GET: a list of test results for the water meter with specified pcbId.
/// </summary> /// </summary>
public static string PressureSensorResultsURL<T>(this T pcbId) public static String PressureSensorResultsURL<T>(this T pcbId)
{ {
#if DEBUG #if DEBUG
var url = "http://localhost:56011/api/CordonelPressureSensorTest/GetTestResults/{0}"; var url = "http://localhost:56011/api/CordonelPressureSensorTest/GetTestResults/{0}";
@@ -439,8 +405,8 @@ namespace Xylem.Common.CommonCore.Configuration
/// Get all production infos for skip process checks or limits for production like: /// Get all production infos for skip process checks or limits for production like:
/// - Battery drained percentage upper limit, /// - Battery drained percentage upper limit,
/// - Production due date for a special register, /// - Production due date for a special register,
/// - Required life time for assembly line, /// - Required lifetime for assembly line,
/// - Required life time for shipping line. /// - Required lifetime for shipping line.
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public static String GetCordonelRequirementInfoServiceUrl() public static String GetCordonelRequirementInfoServiceUrl()
@@ -453,26 +419,26 @@ namespace Xylem.Common.CommonCore.Configuration
/// Get all production infos for skip process checks or limits for production like: /// Get all production infos for skip process checks or limits for production like:
/// - Battery drained percentage upper limit, /// - Battery drained percentage upper limit,
/// - Production due date for a special register, /// - Production due date for a special register,
/// - Required life time for assembly line, /// - Required lifetime for assembly line,
/// - Required life time for shipping line. /// - Required lifetime for shipping line.
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public static String GetCordonelRequirementByFANrInfoServiceUrl(string ponr) public static String GetCordonelRequirementByFANrInfoServiceUrl(String ponr)
{ {
return $"http://sla12iis01.emea.sensus.net/LaaProductionWeb/api/cordonel/requirements/pono/{ponr}"; return $"{ServerDns}/LaaProductionWeb/api/cordonel/requirements/pono/{ponr}";
} }
/// <summary> /// <summary>
/// Get all production infos for skip process checks or limits for production like: /// Get all production infos for skip process checks or limits for production like:
/// - Battery drained percentage upper limit, /// - Battery drained percentage upper limit,
/// - Production due date for a special register, /// - Production due date for a special register,
/// - Required life time for assembly line, /// - Required lifetime for assembly line,
/// - Required life time for shipping line. /// - Required lifetime for shipping line.
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public static string GetCordonelRequirementByMeterSizeInfoServiceUrl(int size) public static String GetCordonelRequirementByMeterSizeInfoServiceUrl(Int32 size)
{ {
return $"http://sla12iis01.emea.sensus.net/LaaProductionWeb/api/cordonel/requirements/isize/{size}"; return $"{ServerDns}/LaaProductionWeb/api/cordonel/requirements/isize/{size}";
} }
/// <summary> /// <summary>
@@ -1 +1 @@
b03dfbada453427a2bb1275645a5f1b525f29900 8cb55c312de586b683d72cf58c13e2801d10e14b767777d98338d3e1473a1213