AddHandler() public method

public AddHandler ( string token, HttpRequestHandlerDelegate handlerDelegate ) : void
token string
handlerDelegate HttpRequestHandlerDelegate
return void
        public PersonalAnalyticsHttp()
        {
            _server = new HttpServer();
            _server.AddHandler("stats", OnStats);             // load stats website
            _server.AddHandler("d3.min.js", OnResource);      // load d3 js framework
            _server.AddHandler("c3.min.js", OnResource);      // load c3 js framework
            _server.AddHandler("c3.min.css", OnStylesheets);  // load css for c3 js framework
            _server.AddHandler("d3.timeline.js", OnResource); // load d3 timeline js framework
            _server.AddHandler("styles.css", OnStylesheets);  // load css
            _server.AddHandler("settings", OnSettings);       // load settings
            _server.AddHandler("setsettings", OnSetSettings); // user clicked save in settings

            try
            {
                _resourceManager = new ResourceManager("PersonalAnalytics.Properties.Resources", GetType().Assembly);
            }
            catch { }
        }
        public PersonalAnalyticsHttp()
        {
            _server = new HttpServer();
            _server.AddHandler("stats", OnStats); // load stats website
            _server.AddHandler("d3.min.js", OnResource); // load d3 js framework
            _server.AddHandler("c3.min.js", OnResource); // load c3 js framework
            _server.AddHandler("c3.min.css", OnStylesheets); // load css for c3 js framework
            _server.AddHandler("d3.timeline.js", OnResource); // load d3 timeline js framework
            _server.AddHandler("styles.css", OnStylesheets); // load css
            _server.AddHandler("settings", OnSettings); // load settings
            _server.AddHandler("setsettings", OnSetSettings); // user clicked save in settings

            try
            {
                _resourceManager = new ResourceManager("PersonalAnalytics.Properties.Resources", GetType().Assembly);
            }
            catch { }
        }