public static ReportingThread GetInstance() { if (Instance == null) { Instance = new ReportingThread(); } return(Instance); }
public static void Main(string[] args) { var manager = new CouchManager(); manager.CouchDBConnect(); var reportingThread = ReportingThread.GetInstance(); reportingThread.StartInfoThread(); int httpPort = IpPorts.TcpPort; url = string.Format("http://*:{0}", httpPort); CreateWebHostBuilder(args).Build().Run(); Console.ReadKey(); }