diff --git a/Projects/NetStandard/KmsProxy/RestAPI.cs b/Projects/NetStandard/KmsProxy/RestAPI.cs index 12ffa02..2665fff 100644 --- a/Projects/NetStandard/KmsProxy/RestAPI.cs +++ b/Projects/NetStandard/KmsProxy/RestAPI.cs @@ -23,6 +23,7 @@ namespace KmsProxy public static async Task PostAsync(string Url, REQUEST body) where REQUEST : class where RESPONSE : class { + Console.WriteLine(Url); try { if (body != null) diff --git a/Projects/NetStandard/PlayGround.NetFramework/App.config b/Projects/NetStandard/PlayGround.NetFramework/App.config index aee9adf..4bfa005 100644 --- a/Projects/NetStandard/PlayGround.NetFramework/App.config +++ b/Projects/NetStandard/PlayGround.NetFramework/App.config @@ -1,6 +1,6 @@ - + - + - \ No newline at end of file + diff --git a/Projects/NetStandard/PlayGround.NetFramework/PlayGround.NetFramework.csproj b/Projects/NetStandard/PlayGround.NetFramework/PlayGround.NetFramework.csproj index 393ed57..3eeb132 100644 --- a/Projects/NetStandard/PlayGround.NetFramework/PlayGround.NetFramework.csproj +++ b/Projects/NetStandard/PlayGround.NetFramework/PlayGround.NetFramework.csproj @@ -8,10 +8,11 @@ Exe PlayGround.NetFramework PlayGround.NetFramework - v4.8.1 + v4.8 512 true true + AnyCPU @@ -54,14 +55,6 @@ - - {0bdb3e8c-2f57-4780-8b6f-3ae3f426a6c3} - CPMeta - - - {63ff04ee-d1a5-4406-9267-1ee1e9fbb9e7} - KeficoMailService - {73824acb-4fb9-4e11-9a86-e05471b3c979} KmsProxy diff --git a/Projects/NetStandard/PlayGround.NetFramework/Program.cs b/Projects/NetStandard/PlayGround.NetFramework/Program.cs index 3184846..0d14ab1 100644 --- a/Projects/NetStandard/PlayGround.NetFramework/Program.cs +++ b/Projects/NetStandard/PlayGround.NetFramework/Program.cs @@ -1,5 +1,4 @@ -using CPMeta.Models; -using KeficoMailService; + using Newtonsoft.Json; using System; using System.Collections.Generic; @@ -12,15 +11,15 @@ namespace PlayGround.NetFramework static void Main(string[] args) { //html Send - Manager manager = new Manager(); + //Manager manager = new Manager(); - Address from = new Address { AddressMail = "TraNotify@kefico.co.kr", AddressName = "" }; - List
to = new List
{ new Address { AddressMail = "systemx.kjh@systemx.co.kr", AddressName = "" } }; - List
cc = new List
{ new Address { AddressMail = "systemx.shm@systemx.co.kr", AddressName = "" } }; - List
bcc = new List
{ }; - - string subject = "TRA 테스트용 메일"; - string textSend = manager.SendMailDetail(from, to, cc, bcc, subject, "Tra Notify", MailType.Text); + //Address from = new Address { AddressMail = "TraNotify@kefico.co.kr", AddressName = "" }; + //List
to = new List
{ new Address { AddressMail = "systemx.kjh@systemx.co.kr", AddressName = "" } }; + //List
cc = new List
{ new Address { AddressMail = "systemx.shm@systemx.co.kr", AddressName = "" } }; + //List
bcc = new List
{ }; + + //string subject = "TRA 테스트용 메일"; + //string textSend = manager.SendMailDetail(from, to, cc, bcc, subject, "Tra Notify", MailType.Text); // string form = manager.GetFormHtml(new HtmlFormType { FormType="", SystemName="" }); @@ -59,84 +58,84 @@ namespace PlayGround.NetFramework // }).Wait(); - return; - ////global set - //string host = "192.168.0.43"; + // return; + //global set + string host = "10.224.193.73"; - //Task.Run(async () => - //{ - // //1. ecuid - // var resEcuid = await KmsProxy.KmsProxy.EcuID_SupplierEcuID(host, new KmsProxy.Models.EcuID.Request_SupplierEcuID - // { - // EcuID = "" - // }); - // Console.WriteLine(JsonConvert.SerializeObject(resEcuid, Formatting.Indented)); + Task.Run(async () => + { + //1. ecuid + var resEcuid = await KmsProxy.KmsProxy.EcuID_SupplierEcuID(host, new KmsProxy.Models.EcuID.Request_SupplierEcuID + { + EcuID = "" + }); + Console.WriteLine(JsonConvert.SerializeObject(resEcuid, Formatting.Indented)); - // //2. master ecu key - // var resMasterKeyProvisioning = await KmsProxy.KmsProxy.MasterEcuKey_SupplierKeyProvisioning(host, new KmsProxy.Models.MasterEcuKey.Request_SupplierKeyProvisioning - // { - // EcuID="" - // }); - // Console.WriteLine(JsonConvert.SerializeObject(resMasterKeyProvisioning, Formatting.Indented)); + //2. master ecu key + var resMasterKeyProvisioning = await KmsProxy.KmsProxy.MasterEcuKey_SupplierKeyProvisioning(host, new KmsProxy.Models.MasterEcuKey.Request_SupplierKeyProvisioning + { + EcuID = "" + }); + Console.WriteLine(JsonConvert.SerializeObject(resMasterKeyProvisioning, Formatting.Indented)); - // var resMasterKeyProvisioningResult = await KmsProxy.KmsProxy.MasterEcuKey_SupplierKeyProvisioningResult(host, new KmsProxy.Models.MasterEcuKey.Request_SupplierKeyProvisioning_Result - // { - // EcuID="" - // }); - // Console.WriteLine(JsonConvert.SerializeObject(resMasterKeyProvisioningResult, Formatting.Indented)); + var resMasterKeyProvisioningResult = await KmsProxy.KmsProxy.MasterEcuKey_SupplierKeyProvisioningResult(host, new KmsProxy.Models.MasterEcuKey.Request_SupplierKeyProvisioning_Result + { + EcuID = "" + }); + Console.WriteLine(JsonConvert.SerializeObject(resMasterKeyProvisioningResult, Formatting.Indented)); - // //3. SupplierSymmKey - // var symmKeyProvisioning = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeyProvisioning(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeyProvisioning - // { - // EcuID="" - // }); - // Console.WriteLine(JsonConvert.SerializeObject(symmKeyProvisioning, Formatting.Indented)); + //3. SupplierSymmKey + var symmKeyProvisioning = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeyProvisioning(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeyProvisioning + { + EcuID = "" + }); + Console.WriteLine(JsonConvert.SerializeObject(symmKeyProvisioning, Formatting.Indented)); - // var symmKeyProvisioningResult = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeyProvisioningResult(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeyProvisioning_Result - // { - // EcuID="" - // }); - // Console.WriteLine(JsonConvert.SerializeObject(symmKeyProvisioningResult, Formatting.Indented)); + var symmKeyProvisioningResult = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeyProvisioningResult(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeyProvisioning_Result + { + EcuID = "" + }); + Console.WriteLine(JsonConvert.SerializeObject(symmKeyProvisioningResult, Formatting.Indented)); - // var symmKeySync = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeySyncValue(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeySyncValue - // { - // EcuID="" - // }); - // Console.WriteLine(JsonConvert.SerializeObject(symmKeySync, Formatting.Indented)); + var symmKeySync = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeySyncValue(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeySyncValue + { + EcuID = "" + }); + Console.WriteLine(JsonConvert.SerializeObject(symmKeySync, Formatting.Indented)); - // var symmKeySyncResult = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeySyncValueResult(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeySyncValue_Result - // { - // EcuID="" - // }); - // Console.WriteLine(JsonConvert.SerializeObject(symmKeySyncResult, Formatting.Indented)); + var symmKeySyncResult = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeySyncValueResult(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeySyncValue_Result + { + EcuID = "" + }); + Console.WriteLine(JsonConvert.SerializeObject(symmKeySyncResult, Formatting.Indented)); - // //4. SecOCKey - // var secOcKeyProvisioning = await KmsProxy.KmsProxy.SecOCKey_SupplierKeyProvisioning(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeyProvisioning - // { - // EcuID="" - // }); - // Console.WriteLine(JsonConvert.SerializeObject(secOcKeyProvisioning, Formatting.Indented)); + //4. SecOCKey + var secOcKeyProvisioning = await KmsProxy.KmsProxy.SecOCKey_SupplierKeyProvisioning(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeyProvisioning + { + EcuID = "" + }); + Console.WriteLine(JsonConvert.SerializeObject(secOcKeyProvisioning, Formatting.Indented)); - // var secOcKeyProvisioningResult = await KmsProxy.KmsProxy.SecOCKey_SupplierKeyProvisioningResult(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeyProvisioning_Result - // { - // EcuID="" - // }); - // Console.WriteLine(JsonConvert.SerializeObject(secOcKeyProvisioningResult, Formatting.Indented)); + var secOcKeyProvisioningResult = await KmsProxy.KmsProxy.SecOCKey_SupplierKeyProvisioningResult(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeyProvisioning_Result + { + EcuID = "" + }); + Console.WriteLine(JsonConvert.SerializeObject(secOcKeyProvisioningResult, Formatting.Indented)); - // var secOcKeySync = await KmsProxy.KmsProxy.SecOCKey_SupplierKeySyncValue(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeySyncValue - // { - // EcuID="" - // }); - // Console.WriteLine(JsonConvert.SerializeObject(secOcKeySync, Formatting.Indented)); + var secOcKeySync = await KmsProxy.KmsProxy.SecOCKey_SupplierKeySyncValue(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeySyncValue + { + EcuID = "" + }); + Console.WriteLine(JsonConvert.SerializeObject(secOcKeySync, Formatting.Indented)); - // var secOcKeySyncResult = await KmsProxy.KmsProxy.SecOCKey_SupplierKeySyncValueResult(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeySyncValue_Result - // { - // EcuID="" - // }); - // Console.WriteLine(JsonConvert.SerializeObject(secOcKeySyncResult, Formatting.Indented)); + var secOcKeySyncResult = await KmsProxy.KmsProxy.SecOCKey_SupplierKeySyncValueResult(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeySyncValue_Result + { + EcuID = "" + }); + Console.WriteLine(JsonConvert.SerializeObject(secOcKeySyncResult, Formatting.Indented)); - // }).Wait(); + }).Wait(); } } }