source: binary-improvements/WebInterface/Commands/webstat.cs@ 225

Last change on this file since 225 was 224, checked in by alloc, 10 years ago

A11 preps

File size: 695 bytes
RevLine 
[224]1using System;
2using System.Collections.Generic;
3
4namespace AllocsFixes.CustomCommands
5{
6 public class webstat : ConsoleCommand
7 {
8 public webstat (ConsoleSdtd cons) : base(cons)
9 {
10 }
11
12 public override string Description ()
13 {
14 return "DEBUG PURPOSES ONLY";
15 }
16
17 public override string[] Names ()
18 {
19 return new string[] { "webstat", string.Empty };
20 }
21
22 public override void Run (string[] _params)
23 {
24 try {
25 m_Console.SendResult ("Current handlers: " + AllocsFixes.NetConnections.Servers.Web.Web.currentHandlers + " - total: " + AllocsFixes.NetConnections.Servers.Web.Web.handlingCount);
26 } catch (Exception e) {
27 Log.Out ("Error in webstat.Run: " + e);
28 }
29 }
30 }
31}
Note: See TracBrowser for help on using the repository browser.