using Newtonsoft.Json;
using System;
namespace Postman
{
class Program
{
static void Main(string[] args)
{
if (args.Length == 0) { return; }
var confPath = System.IO.Path.Combine(AppContext.BaseDirectory, "conf.json");
if (!System.IO.File.Exists(confPath))
{
Console.WriteLine($"設定ファイルが存在しません:{confPath}");
Console.Read();
return;
}
var json = System.IO.File.ReadAllText(confPath);
var configure = JsonConvert.DeserializeObject<Configure>(json);
var postman = new Postman()
{
conf = configure,
};
_ = postman.Post(args[0]).Result;
}
}
}