using System.Collections.Generic; using Infrastructure.Application; using Infrastructure.Configuration; using Infrastructure.Web.Hosting; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace APService { public class Program { public static void Main(string[] args) { WebHost.CreateDefaultBuilder(args) .Run(new List { new EFConfigurationValue { Id = "openapi.title", Value= "web api" }, new EFConfigurationValue { Id = "openapi.version", Value= "1.0" }, new EFConfigurationValue { Id = "server.ip", Value= "" }, new EFConfigurationValue { Id = "server.urls", Value= "http://*:8006" }, new EFConfigurationValue { Id = "security:key", Value= "111111111111111111111111"}, new EFConfigurationValue { Id = "security:iv", Value= "11111111"}, new EFConfigurationValue { Id = "email:host", Value= "nbaxp.com"}, new EFConfigurationValue { Id = "email:port", Value= "25"}, new EFConfigurationValue { Id = "email:user", Value= "admin@nbaxp.com"}, new EFConfigurationValue { Id = "email:password", Value= "aA123456"}, new EFConfigurationValue { Id = "node.url", Value= "127.0.0.1:8002"}, new EFConfigurationValue { Id = "ap.ip", Value= "192.168.3.1"}, new EFConfigurationValue { Id = "ap.port", Value= "22"}, new EFConfigurationValue { Id = "ap.usr", Value= "super"}, new EFConfigurationValue { Id = "ap.pwd", Value= "sp-admin"}, new EFConfigurationValue { Id = "timer.seconds", Value="15"}, // new EFConfigurationValue { Id = "name", Value= "AP监控服务"}, new EFConfigurationValue { Id = "logo", Value= "/images/logo.png",Type= InputType.ImageUrl}, new EFConfigurationValue { Id = "copyright", Value= "Copyright © {now} Company. All rights reserved",Type= InputType.Html} }); } } }