Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            string baseAddress = "http://localhost:9000/";

            CustomEventLog.RegisterCustomEventLog();
            var startupSetup    = new StartupSetup();
            var databaseEnsured = startupSetup.EnsureStorage();

            if (databaseEnsured)
            {
                Console.WriteLine("Database Ensured");
            }

            // Start OWIN host
            using (WebApp.Start <Startup>(url: baseAddress))
            {
                // Create HttpCient and make a request to api/values
                HttpClient client = new HttpClient();
                Console.ReadLine();
            }
        }