private void ConfigureWebService() { if (string.IsNullOrWhiteSpace(HostDirectory)) { return; } CSWebService = new WebServer( HostDirectory, Championship.WebServerPort ); // To do should this actually be pointing to the ChampionshipVM object? ScriptProcessor.addApplicationScopeObject( "Championship", ((App)App.Current).CurrentChampionship.Championship); ScriptProcessor.addApplicationScopeObject( "CS", ChampionshipSolution.getCS()); ScriptProcessor.addApplicationScopeObject( "Report", ChampionshipSolutions.Reports.CSReportLibrary.getLibrary()); CSWebService.DynamicFileRequestedEvent += FileNeededEvent; runStatus = true; }