/** * Gets a handler by service name. */ public override DataRequestHandler getHandler(String service) { DataRequestHandler provider = null; if (!handlers.TryGetValue(service, out provider)) { return(null); } return(provider); }
/** * Adds a custom handler. */ public void addHandler(String service, DataRequestHandler handler) { handlers.Add(service, handler); }