void Application_Start(object sender, EventArgs e) { // Code that runs on application startup var LwrfAPI = new LightwaveRF.API(); LwrfAPI.Listen(); Application.Add("APIref", LwrfAPI); }