//public PackageCache ApplicationPackageCache {get;} public PhotonServer() { Http = new HttpServer(this); Projects = new ProjectManager(); Sessions = new ServerSessionManager(); MessageRegistry = new MessageProcessorRegistry(); Variables = new VariableSetDocumentManager(); HealthChecks = new HealthCheckService(); UserMgr = new UserGroupManager(); ProjectPackageCache = new ProjectPackageCache(); ServerConfiguration = new ServerConfigurationManager(); Agents = new ServerAgentManager(); ProjectPackages = new ProjectPackageManager { PackageDirectory = Configuration.ProjectPackageDirectory, }; ApplicationPackages = new ApplicationPackageManager { PackageDirectory = Configuration.ApplicationPackageDirectory, }; Queue = new ScriptQueue { MaxDegreeOfParallelism = Configuration.Parallelism, }; ProjectPackages.PackageAdded += ProjectPackages_OnPackageAdded; }
public PhotonServer() { Projects = new ProjectManager(); Sessions = new ServerSessionManager(); MessageRegistry = new MessageProcessorRegistry(); Variables = new VariableSetDocumentManager(); ProjectPackages = new ProjectPackageManager { PackageDirectory = Configuration.ProjectPackageDirectory, }; ApplicationPackages = new ApplicationPackageManager { PackageDirectory = Configuration.ApplicationPackageDirectory, }; Queue = new ScriptQueue { MaxDegreeOfParallelism = Configuration.Parallelism, }; ServerConfiguration = new ServerConfigurationManager(); Agents = new ServerAgentManager(); }