28 lines
		
	
	
		
			635 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			635 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Microsoft.Owin.Hosting;
 | |
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Linq;
 | |
| using System.Text;
 | |
| using System.Threading.Tasks;
 | |
| 
 | |
| namespace WebServer
 | |
| {
 | |
|     class Program
 | |
|     {
 | |
|         static void Main(string[] args)
 | |
|         {
 | |
|             // Start OWIN host
 | |
|             try
 | |
|             {
 | |
|                 WebApp.Start<OWIN.Startup>(url: "http://127.0.0.1:9000");
 | |
|                 Console.WriteLine("start webapp");
 | |
|                 Console.ReadLine();
 | |
|             }
 | |
|             catch (Exception ex)
 | |
|             {
 | |
|                 Console.WriteLine(ex.Message);
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 | 
