예제 #1
0
 public PV6900VirtualMachine(
     IIteInteropService iteInteropService,
     DeviceInfoBoxService deviceInfoWrapService)
 {
     _iteInteropService = iteInteropService;
     DeviceInfo         = deviceInfoWrapService.Unbox() !;
 }
예제 #2
0
 public PV6900DevicePanel(
     IIteInteropService iteInteropService,
     DeviceInfoBoxService deviceInfoBoxService,
     ManagedProgramInterpreter interpreter)
 {
     _iteInteropService = iteInteropService;
     _deviceInfo        = deviceInfoBoxService.Unbox() !;
     _interpreter       = interpreter;
 }
예제 #3
0
        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);
        }