之前的
This commit is contained in:
@@ -101,24 +101,14 @@ export interface SandboxEvents {
|
||||
/**
|
||||
* 应用沙箱引擎类
|
||||
*/
|
||||
import { ServiceProvider, Inject } from './di/ServiceProvider'
|
||||
import type { IServiceContainer } from './di/IServiceContainer'
|
||||
|
||||
export class ApplicationSandboxEngine {
|
||||
// 服务容器
|
||||
private serviceContainer: IServiceContainer
|
||||
|
||||
private sandboxes = reactive(new Map<string, SandboxInstance>())
|
||||
private performanceData = reactive(new Map<string, SandboxPerformance[]>())
|
||||
private monitoringInterval: number | null = null
|
||||
|
||||
// 资源服务
|
||||
@Inject('resourceService')
|
||||
private resourceService: ResourceService
|
||||
|
||||
constructor(resourceService: ResourceService, serviceContainer: IServiceContainer) {
|
||||
constructor(resourceService: ResourceService) {
|
||||
this.resourceService = resourceService
|
||||
this.serviceContainer = serviceContainer
|
||||
this.startPerformanceMonitoring()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user