public static void HandleRequest(Request request) { switch (request.CommandID) { case 1: GetServerInstanceCommand.HandleRequest(request); break; default: Log.Warn(string.Format("Unhandled request: {0} {1}", request.ComponentID, request.CommandID)); break; } }