[성현모] 로그 추가
This commit is contained in:
@ -23,6 +23,7 @@ namespace KmsProxy
|
|||||||
|
|
||||||
public static async Task<RESPONSE> PostAsync<REQUEST, RESPONSE>(string Url, REQUEST body) where REQUEST : class where RESPONSE : class
|
public static async Task<RESPONSE> PostAsync<REQUEST, RESPONSE>(string Url, REQUEST body) where REQUEST : class where RESPONSE : class
|
||||||
{
|
{
|
||||||
|
Console.WriteLine(Url);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (body != null)
|
if (body != null)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
||||||
@ -8,10 +8,11 @@
|
|||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>PlayGround.NetFramework</RootNamespace>
|
<RootNamespace>PlayGround.NetFramework</RootNamespace>
|
||||||
<AssemblyName>PlayGround.NetFramework</AssemblyName>
|
<AssemblyName>PlayGround.NetFramework</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
@ -54,14 +55,6 @@
|
|||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<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">
|
<ProjectReference Include="..\KmsProxy\KmsProxy.csproj">
|
||||||
<Project>{73824acb-4fb9-4e11-9a86-e05471b3c979}</Project>
|
<Project>{73824acb-4fb9-4e11-9a86-e05471b3c979}</Project>
|
||||||
<Name>KmsProxy</Name>
|
<Name>KmsProxy</Name>
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
using CPMeta.Models;
|
|
||||||
using KeficoMailService;
|
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@ -12,15 +11,15 @@ namespace PlayGround.NetFramework
|
|||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
//html Send
|
//html Send
|
||||||
Manager manager = new Manager();
|
//Manager manager = new Manager();
|
||||||
|
|
||||||
Address from = new Address { AddressMail = "TraNotify@kefico.co.kr", AddressName = "" };
|
//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> 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> cc = new List<Address> { new Address { AddressMail = "systemx.shm@systemx.co.kr", AddressName = "" } };
|
||||||
List<Address> bcc = new List<Address> { };
|
//List<Address> bcc = new List<Address> { };
|
||||||
|
|
||||||
string subject = "TRA 테스트용 메일";
|
//string subject = "TRA 테스트용 메일";
|
||||||
string textSend = manager.SendMailDetail(from, to, cc, bcc, subject, "Tra Notify", MailType.Text);
|
//string textSend = manager.SendMailDetail(from, to, cc, bcc, subject, "Tra Notify", MailType.Text);
|
||||||
|
|
||||||
|
|
||||||
// string form = manager.GetFormHtml(new HtmlFormType { FormType="", SystemName="" });
|
// string form = manager.GetFormHtml(new HtmlFormType { FormType="", SystemName="" });
|
||||||
@ -59,84 +58,84 @@ namespace PlayGround.NetFramework
|
|||||||
// }).Wait();
|
// }).Wait();
|
||||||
|
|
||||||
|
|
||||||
return;
|
// return;
|
||||||
////global set
|
//global set
|
||||||
//string host = "192.168.0.43";
|
string host = "10.224.193.73";
|
||||||
|
|
||||||
//Task.Run(async () =>
|
Task.Run(async () =>
|
||||||
//{
|
{
|
||||||
// //1. ecuid
|
//1. ecuid
|
||||||
// var resEcuid = await KmsProxy.KmsProxy.EcuID_SupplierEcuID(host, new KmsProxy.Models.EcuID.Request_SupplierEcuID
|
var resEcuid = await KmsProxy.KmsProxy.EcuID_SupplierEcuID(host, new KmsProxy.Models.EcuID.Request_SupplierEcuID
|
||||||
// {
|
{
|
||||||
// EcuID = ""
|
EcuID = ""
|
||||||
// });
|
});
|
||||||
// Console.WriteLine(JsonConvert.SerializeObject(resEcuid, Formatting.Indented));
|
Console.WriteLine(JsonConvert.SerializeObject(resEcuid, Formatting.Indented));
|
||||||
|
|
||||||
// //2. master ecu key
|
//2. master ecu key
|
||||||
// var resMasterKeyProvisioning = await KmsProxy.KmsProxy.MasterEcuKey_SupplierKeyProvisioning(host, new KmsProxy.Models.MasterEcuKey.Request_SupplierKeyProvisioning
|
var resMasterKeyProvisioning = await KmsProxy.KmsProxy.MasterEcuKey_SupplierKeyProvisioning(host, new KmsProxy.Models.MasterEcuKey.Request_SupplierKeyProvisioning
|
||||||
// {
|
{
|
||||||
// EcuID=""
|
EcuID = ""
|
||||||
// });
|
});
|
||||||
// Console.WriteLine(JsonConvert.SerializeObject(resMasterKeyProvisioning, Formatting.Indented));
|
Console.WriteLine(JsonConvert.SerializeObject(resMasterKeyProvisioning, Formatting.Indented));
|
||||||
|
|
||||||
// var resMasterKeyProvisioningResult = await KmsProxy.KmsProxy.MasterEcuKey_SupplierKeyProvisioningResult(host, new KmsProxy.Models.MasterEcuKey.Request_SupplierKeyProvisioning_Result
|
var resMasterKeyProvisioningResult = await KmsProxy.KmsProxy.MasterEcuKey_SupplierKeyProvisioningResult(host, new KmsProxy.Models.MasterEcuKey.Request_SupplierKeyProvisioning_Result
|
||||||
// {
|
{
|
||||||
// EcuID=""
|
EcuID = ""
|
||||||
// });
|
});
|
||||||
// Console.WriteLine(JsonConvert.SerializeObject(resMasterKeyProvisioningResult, Formatting.Indented));
|
Console.WriteLine(JsonConvert.SerializeObject(resMasterKeyProvisioningResult, Formatting.Indented));
|
||||||
|
|
||||||
// //3. SupplierSymmKey
|
//3. SupplierSymmKey
|
||||||
// var symmKeyProvisioning = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeyProvisioning(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeyProvisioning
|
var symmKeyProvisioning = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeyProvisioning(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeyProvisioning
|
||||||
// {
|
{
|
||||||
// EcuID=""
|
EcuID = ""
|
||||||
// });
|
});
|
||||||
// Console.WriteLine(JsonConvert.SerializeObject(symmKeyProvisioning, Formatting.Indented));
|
Console.WriteLine(JsonConvert.SerializeObject(symmKeyProvisioning, Formatting.Indented));
|
||||||
|
|
||||||
// var symmKeyProvisioningResult = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeyProvisioningResult(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeyProvisioning_Result
|
var symmKeyProvisioningResult = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeyProvisioningResult(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeyProvisioning_Result
|
||||||
// {
|
{
|
||||||
// EcuID=""
|
EcuID = ""
|
||||||
// });
|
});
|
||||||
// Console.WriteLine(JsonConvert.SerializeObject(symmKeyProvisioningResult, Formatting.Indented));
|
Console.WriteLine(JsonConvert.SerializeObject(symmKeyProvisioningResult, Formatting.Indented));
|
||||||
|
|
||||||
// var symmKeySync = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeySyncValue(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeySyncValue
|
var symmKeySync = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeySyncValue(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeySyncValue
|
||||||
// {
|
{
|
||||||
// EcuID=""
|
EcuID = ""
|
||||||
// });
|
});
|
||||||
// Console.WriteLine(JsonConvert.SerializeObject(symmKeySync, Formatting.Indented));
|
Console.WriteLine(JsonConvert.SerializeObject(symmKeySync, Formatting.Indented));
|
||||||
|
|
||||||
// var symmKeySyncResult = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeySyncValueResult(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeySyncValue_Result
|
var symmKeySyncResult = await KmsProxy.KmsProxy.SupplierSymmKey_SupplierKeySyncValueResult(host, new KmsProxy.Models.SupplierSymmKey.Request_SupplierKeySyncValue_Result
|
||||||
// {
|
{
|
||||||
// EcuID=""
|
EcuID = ""
|
||||||
// });
|
});
|
||||||
// Console.WriteLine(JsonConvert.SerializeObject(symmKeySyncResult, Formatting.Indented));
|
Console.WriteLine(JsonConvert.SerializeObject(symmKeySyncResult, Formatting.Indented));
|
||||||
|
|
||||||
// //4. SecOCKey
|
//4. SecOCKey
|
||||||
// var secOcKeyProvisioning = await KmsProxy.KmsProxy.SecOCKey_SupplierKeyProvisioning(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeyProvisioning
|
var secOcKeyProvisioning = await KmsProxy.KmsProxy.SecOCKey_SupplierKeyProvisioning(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeyProvisioning
|
||||||
// {
|
{
|
||||||
// EcuID=""
|
EcuID = ""
|
||||||
// });
|
});
|
||||||
// Console.WriteLine(JsonConvert.SerializeObject(secOcKeyProvisioning, Formatting.Indented));
|
Console.WriteLine(JsonConvert.SerializeObject(secOcKeyProvisioning, Formatting.Indented));
|
||||||
|
|
||||||
// var secOcKeyProvisioningResult = await KmsProxy.KmsProxy.SecOCKey_SupplierKeyProvisioningResult(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeyProvisioning_Result
|
var secOcKeyProvisioningResult = await KmsProxy.KmsProxy.SecOCKey_SupplierKeyProvisioningResult(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeyProvisioning_Result
|
||||||
// {
|
{
|
||||||
// EcuID=""
|
EcuID = ""
|
||||||
// });
|
});
|
||||||
// Console.WriteLine(JsonConvert.SerializeObject(secOcKeyProvisioningResult, Formatting.Indented));
|
Console.WriteLine(JsonConvert.SerializeObject(secOcKeyProvisioningResult, Formatting.Indented));
|
||||||
|
|
||||||
// var secOcKeySync = await KmsProxy.KmsProxy.SecOCKey_SupplierKeySyncValue(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeySyncValue
|
var secOcKeySync = await KmsProxy.KmsProxy.SecOCKey_SupplierKeySyncValue(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeySyncValue
|
||||||
// {
|
{
|
||||||
// EcuID=""
|
EcuID = ""
|
||||||
// });
|
});
|
||||||
// Console.WriteLine(JsonConvert.SerializeObject(secOcKeySync, Formatting.Indented));
|
Console.WriteLine(JsonConvert.SerializeObject(secOcKeySync, Formatting.Indented));
|
||||||
|
|
||||||
// var secOcKeySyncResult = await KmsProxy.KmsProxy.SecOCKey_SupplierKeySyncValueResult(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeySyncValue_Result
|
var secOcKeySyncResult = await KmsProxy.KmsProxy.SecOCKey_SupplierKeySyncValueResult(host, new KmsProxy.Models.SecOCKey.Request_SupplierKeySyncValue_Result
|
||||||
// {
|
{
|
||||||
// EcuID=""
|
EcuID = ""
|
||||||
// });
|
});
|
||||||
// Console.WriteLine(JsonConvert.SerializeObject(secOcKeySyncResult, Formatting.Indented));
|
Console.WriteLine(JsonConvert.SerializeObject(secOcKeySyncResult, Formatting.Indented));
|
||||||
|
|
||||||
|
|
||||||
// }).Wait();
|
}).Wait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user