Esempio n. 1
0
        /// <summary>
        /// main
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            CommonConfigurationBuilderBiz.SetConfgurationBuilder();

            IProductBiz iProductBiz = BaseMainBiz.GetProductInstance("AUCTION");
            //List<ProductInfo> productInfoList = iProductBiz.GetProductInfo("HF_AUCTION");

            HandleAuctionProduct handleAuctionPrd = new HandleAuctionProduct("AUCTION");

            Console.WriteLine(handleAuctionPrd.Host.AppID);
            Console.WriteLine(handleAuctionPrd.Host.AppPassword);
            Console.WriteLine(handleAuctionPrd.Host.DevID);
            Console.WriteLine(handleAuctionPrd.Host.MemberID);
            Console.WriteLine(handleAuctionPrd.Host.PartnerID);
            AddItemRequestT req = new AddItemRequestT();
            dynamic         res = handleAuctionPrd.API_AddItemAsync(req);

            Console.WriteLine(res);
            Console.ReadLine();
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            CommonConfigurationBuilderBiz.SetConfgurationBuilder();

            ///Kestrel 웹서버 urls 설정 세팅
            var config = new ConfigurationBuilder()
                         .SetBasePath(Directory.GetCurrentDirectory())
                         .AddJsonFile("hosting.json", optional: true)
                         .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
                         .Build();

            var host = new WebHostBuilder()
                       .UseKestrel()
                       .UseConfiguration(config) //Kestrel 웹서버 urls 설정 적용
                       .UseContentRoot(Directory.GetCurrentDirectory())
                       .UseIISIntegration()
                       .UseStartup <Startup>()
                       .UseApplicationInsights()
                       .Build();

            host.Run();
        }