[성현모] 로그 추가

This commit is contained in:
SHM
2026-03-03 11:04:23 +09:00
parent e60d499fa3
commit 4c25200f80
4 changed files with 80 additions and 87 deletions

View File

@ -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<Address> to = new List<Address> { new Address { AddressMail = "systemx.kjh@systemx.co.kr", AddressName = "" } };
List<Address> cc = new List<Address> { new Address { AddressMail = "systemx.shm@systemx.co.kr", AddressName = "" } };
List<Address> bcc = new List<Address> { };
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<Address> to = new List<Address> { new Address { AddressMail = "systemx.kjh@systemx.co.kr", AddressName = "" } };
//List<Address> cc = new List<Address> { new Address { AddressMail = "systemx.shm@systemx.co.kr", AddressName = "" } };
//List<Address> bcc = new List<Address> { };
//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();
}
}
}