Fix due to the modified ServiceManager.cs

This commit is contained in:
sta
2012-11-02 17:55:00 +09:00
parent 746c883b82
commit 2addc16f91
30 changed files with 65 additions and 11 deletions

Binary file not shown.

View File

@@ -12,9 +12,9 @@ namespace Example3
public static void Main(string[] args)
{
_httpsv = new HttpServer(4649);
//_httpsv.Sweeped = false; // Stop the Sweep inactive session Timer.
_httpsv.AddService<Echo>("/Echo");
_httpsv.AddService<Chat>("/Chat");
//_httpsv.Sweeped = false; // Must be set after any AddService methods done.
_httpsv.OnGet += (sender, e) =>
{
@@ -27,7 +27,10 @@ namespace Example3
};
_httpsv.Start();
Console.WriteLine("HTTP Server listening on port: {0}\n", _httpsv.Port);
Console.WriteLine("HTTP Server listening on port: {0} service path:", _httpsv.Port);
foreach (var path in _httpsv.ServicePath)
Console.WriteLine(" {0}", path);
Console.WriteLine();
Console.WriteLine("Press any key to stop server...");
Console.ReadLine();