/// <summary>Dispose services. </summary> public void Dispose() { if (ScriptingService != null) { ScriptingService.Dispose(); } if (ExprDeclaredService != null) { ExprDeclaredService.Dispose(); } if (DataFlowService != null) { DataFlowService.Dispose(); } if (VariableService != null) { VariableService.Dispose(); } if (MetricsReportingService != null) { MetricsReportingService.Dispose(); } if (ThreadingService != null) { ThreadingService.Dispose(); } if (StatementLifecycleSvc != null) { StatementLifecycleSvc.Dispose(); } if (FilterService != null) { FilterService.Dispose(); } if (SchedulingService != null) { SchedulingService.Dispose(); } if (SchedulingMgmtService != null) { SchedulingMgmtService.Dispose(); } if (StreamService != null) { StreamService.Destroy(); } if (NamedWindowMgmtService != null) { NamedWindowMgmtService.Dispose(); } if (NamedWindowDispatchService != null) { NamedWindowDispatchService.Dispose(); } if (EngineLevelExtensionServicesContext != null) { EngineLevelExtensionServicesContext.Dispose(); } if (StatementIsolationService != null) { StatementIsolationService.Dispose(); } if (DeploymentStateService != null) { DeploymentStateService.Dispose(); } }