[성현모] 로그 추가

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

@ -23,6 +23,7 @@ namespace KmsProxy
public static async Task<RESPONSE> PostAsync<REQUEST, RESPONSE>(string Url, REQUEST body) where REQUEST : class where RESPONSE : class
{
Console.WriteLine(Url);
try
{
if (body != null)

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>
</configuration>

View File

@ -8,10 +8,11 @@
<OutputType>Exe</OutputType>
<RootNamespace>PlayGround.NetFramework</RootNamespace>
<AssemblyName>PlayGround.NetFramework</AssemblyName>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
@ -54,14 +55,6 @@
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CPMeta\CPMeta.csproj">
<Project>{0bdb3e8c-2f57-4780-8b6f-3ae3f426a6c3}</Project>
<Name>CPMeta</Name>
</ProjectReference>
<ProjectReference Include="..\KeficoMailService\KeficoMailService.csproj">
<Project>{63ff04ee-d1a5-4406-9267-1ee1e9fbb9e7}</Project>
<Name>KeficoMailService</Name>
</ProjectReference>
<ProjectReference Include="..\KmsProxy\KmsProxy.csproj">
<Project>{73824acb-4fb9-4e11-9a86-e05471b3c979}</Project>
<Name>KmsProxy</Name>

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();
}
}
}