public PV6900VirtualMachine( IIteInteropService iteInteropService, DeviceInfoBoxService deviceInfoWrapService) { _iteInteropService = iteInteropService; DeviceInfo = deviceInfoWrapService.Unbox() !; }
public PV6900DevicePanel( IIteInteropService iteInteropService, DeviceInfoBoxService deviceInfoBoxService, ManagedProgramInterpreter interpreter) { _iteInteropService = iteInteropService; _deviceInfo = deviceInfoBoxService.Unbox() !; _interpreter = interpreter; }
public IDevicePanel CreateDevicePanel(DeviceInfo deviceInfo) { IServiceScope serviceScope = _serviceProvider.CreateScope(); DeviceInfoBoxService deviceInfoWrapService = serviceScope.ServiceProvider.GetRequiredService <DeviceInfoBoxService>(); deviceInfoWrapService.Box(deviceInfo); PV6900DevicePanel devicePanel = serviceScope.ServiceProvider .GetRequiredService <PV6900DevicePanel>(); devicePanel.ServiceScope = serviceScope; return(devicePanel); }