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; }
/// <summary> /// Generates certificates for the currently selected championship /// </summary> /// <returns>File paths to where the certificates were generated</returns> public string [] GenerateCertificates( ) { return(ChampionshipSolution.getCS( ).OpenCert(ID)); }