[성현모] KeficoMailService 추가, KMS 인증서 컨피그 추가
This commit is contained in:
@ -58,6 +58,10 @@
|
||||
<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>
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
using CPMeta.Models;
|
||||
using KeficoMailService;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PlayGround.NetFramework
|
||||
@ -9,28 +11,52 @@ namespace PlayGround.NetFramework
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
//global set
|
||||
string host = "192.168.0.42";
|
||||
//html Send
|
||||
Manager manager = new Manager();
|
||||
|
||||
//random value
|
||||
string ProductId = "00010032-87a4-45ca-b627-b975d41e35df";
|
||||
// string Mac1 = Guid.NewGuid().ToString();
|
||||
// string Mac2 = Guid.NewGuid().ToString();
|
||||
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);
|
||||
|
||||
//Get
|
||||
Task.Run(async () =>
|
||||
{
|
||||
var res2 = await CPMeta.CPMeta.HealthCheck(host);
|
||||
|
||||
// var res2 = await CPMeta.CPMeta.GetWbmsMetaByProductId(host, ProductId);
|
||||
// string form = manager.GetFormHtml(new HtmlFormType { FormType="", SystemName="" });
|
||||
|
||||
Console.ForegroundColor = ConsoleColor.DarkBlue;
|
||||
Console.WriteLine($"Response: {res2} (Trace Guid:)");
|
||||
Console.ForegroundColor = ConsoleColor.White;
|
||||
//form = form.Replace("@HEADTITLE@", "헤드타이틀");
|
||||
//form = form.Replace("@TITLE@", "타이틀");
|
||||
//form = form.Replace("@BODY@", "내용");
|
||||
//form = form.Replace("@URL@", "링크");
|
||||
// string htmlSend = manager.SendMailDetail(from, to, cc, bcc, subject, form, MailType.Html);
|
||||
|
||||
// var res3 = await CPMeta.CPMeta.GetWbmsMetaByMacAddress(host, Mac1);
|
||||
// var res4 = await CPMeta.CPMeta.GetWbmsMetaByMacAddress(host, Mac2);
|
||||
}).Wait();
|
||||
|
||||
//Text Send
|
||||
|
||||
|
||||
// //global set
|
||||
// string host = "192.168.0.42";
|
||||
|
||||
// //random value
|
||||
// string ProductId = "00010032-87a4-45ca-b627-b975d41e35df";
|
||||
// // string Mac1 = Guid.NewGuid().ToString();
|
||||
//// string Mac2 = Guid.NewGuid().ToString();
|
||||
|
||||
// //Get
|
||||
// Task.Run(async () =>
|
||||
// {
|
||||
// var res2 = await CPMeta.CPMeta.HealthCheck(host);
|
||||
|
||||
// // var res2 = await CPMeta.CPMeta.GetWbmsMetaByProductId(host, ProductId);
|
||||
|
||||
// Console.ForegroundColor = ConsoleColor.DarkBlue;
|
||||
// Console.WriteLine($"Response: {res2} (Trace Guid:)");
|
||||
// Console.ForegroundColor = ConsoleColor.White;
|
||||
|
||||
// // var res3 = await CPMeta.CPMeta.GetWbmsMetaByMacAddress(host, Mac1);
|
||||
// // var res4 = await CPMeta.CPMeta.GetWbmsMetaByMacAddress(host, Mac2);
|
||||
// }).Wait();
|
||||
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user