Ejemplo n.º 1
0
        public static ReportingThread GetInstance()
        {
            if (Instance == null)
            {
                Instance = new ReportingThread();
            }

            return(Instance);
        }
Ejemplo n.º 2
0
        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();
        }