public ShellOperation( IActionCenter actionCenter, IAudio audio, INotificationInfo aboutInfo, INotificationController aboutController, ClientContext context, IKeyboard keyboard, ILogger logger, INotificationInfo logInfo, INotificationController logController, IPowerSupply powerSupply, ISystemInfo systemInfo, ITaskbar taskbar, ITaskview taskview, IText text, IUserInterfaceFactory uiFactory, IWirelessAdapter wirelessAdapter) : base(context) { this.aboutInfo = aboutInfo; this.aboutController = aboutController; this.actionCenter = actionCenter; this.audio = audio; this.keyboard = keyboard; this.logger = logger; this.logInfo = logInfo; this.logController = logController; this.powerSupply = powerSupply; this.systemInfo = systemInfo; this.text = text; this.taskbar = taskbar; this.taskview = taskview; this.uiFactory = uiFactory; this.wirelessAdapter = wirelessAdapter; }
internal ClientController( IActionCenter actionCenter, IApplicationMonitor applicationMonitor, ClientContext context, IDisplayMonitor displayMonitor, IExplorerShell explorerShell, IFileSystemDialog fileSystemDialog, IHashAlgorithm hashAlgorithm, ILogger logger, IMessageBox messageBox, IOperationSequence operations, IRuntimeProxy runtime, Action shutdown, ISplashScreen splashScreen, ITaskbar taskbar, IText text, IUserInterfaceFactory uiFactory) { this.actionCenter = actionCenter; this.applicationMonitor = applicationMonitor; this.context = context; this.displayMonitor = displayMonitor; this.explorerShell = explorerShell; this.fileSystemDialog = fileSystemDialog; this.hashAlgorithm = hashAlgorithm; this.logger = logger; this.messageBox = messageBox; this.operations = operations; this.runtime = runtime; this.shutdown = shutdown; this.splashScreen = splashScreen; this.taskbar = taskbar; this.text = text; this.uiFactory = uiFactory; }
public ClientController( IActionCenter actionCenter, IDisplayMonitor displayMonitor, IExplorerShell explorerShell, IHashAlgorithm hashAlgorithm, ILogger logger, IMessageBox messageBox, IOperationSequence operations, IProcessMonitor processMonitor, IRuntimeProxy runtime, Action shutdown, ITaskbar taskbar, ITerminationActivator terminationActivator, IText text, IUserInterfaceFactory uiFactory, IWindowMonitor windowMonitor) { this.actionCenter = actionCenter; this.displayMonitor = displayMonitor; this.explorerShell = explorerShell; this.hashAlgorithm = hashAlgorithm; this.logger = logger; this.messageBox = messageBox; this.operations = operations; this.processMonitor = processMonitor; this.runtime = runtime; this.shutdown = shutdown; this.taskbar = taskbar; this.terminationActivator = terminationActivator; this.text = text; this.uiFactory = uiFactory; this.windowMonitor = windowMonitor; }
public Taskbar() { if (TaskBar == null) { TaskBar = (ITaskbar) new TaskbarClass(); TaskBar.HrInit(); } }
internal SEBContext(AppSettings settings) { appSettings = settings; logger = new Logger(); hashAlgorithm = new HashAlgorithm(); InitializeLogging(); InitializeText(); _dispatcher = Dispatcher.CurrentDispatcher; uiFactory = new UserInterfaceFactory(text); messageBox = new MessageBoxFactory(text); taskbar = uiFactory.CreateTaskbar(logger); taskbar.QuitButtonClicked += Shell_QuitButtonClicked; taskbar.Show(); workingAreaHandler = new WorkingAreaHandler(new ModuleLogger(logger, nameof(WorkingAreaHandler))); workingAreaHandler.InitializeWorkingArea(taskbar.GetAbsoluteHeight()); taskview = uiFactory.CreateTaskview(); var audioSettings = new AudioSettings(); var audio = new Audio(audioSettings, new ModuleLogger(logger, nameof(Audio))); audio.Initialize(); taskbar.AddSystemControl(uiFactory.CreateAudioControl(audio, Location.Taskbar)); var keyboard = new Keyboard(new ModuleLogger(logger, nameof(Keyboard))); keyboard.Initialize(); taskbar.AddSystemControl(uiFactory.CreateKeyboardLayoutControl(keyboard, Location.Taskbar)); var powerSupply = new PowerSupply(new ModuleLogger(logger, nameof(PowerSupply))); powerSupply.Initialize(); taskbar.AddSystemControl(uiFactory.CreatePowerSupplyControl(powerSupply, Location.Taskbar)); var wirelessAdapter = new WirelessAdapter(new ModuleLogger(logger, nameof(WirelessAdapter))); wirelessAdapter.Initialize(); taskbar.AddSystemControl(uiFactory.CreateWirelessNetworkControl(wirelessAdapter, Location.Taskbar)); browser = new BrowserApplication(appSettings, messageBox, true, new ModuleLogger(logger, nameof(BrowserApplication)), text); taskbar.AddApplicationControl(uiFactory.CreateApplicationControl(browser, Location.Taskbar), true); browser.TerminationRequested += () => { Browser_TerminationRequested(); }; taskview.Add(browser); InitializeCef(); foreach (string startUrl in appSettings.StartUrls) { browser.CreateNewInstance(startUrl); } }
public ServerOperation( IActionCenter actionCenter, ClientContext context, ILogger logger, IServerProxy server, ITaskbar taskbar) : base(context) { this.actionCenter = actionCenter; this.logger = logger; this.server = server; this.taskbar = taskbar; }
public BrowserOperation( IActionCenter actionCenter, IApplication browser, ILogger logger, ITaskbar taskbar, IUserInterfaceFactory uiFactory) { this.actionCenter = actionCenter; this.browser = browser; this.logger = logger; this.taskbar = taskbar; this.uiFactory = uiFactory; }
public BrowserOperation( IActionCenter actionCenter, ClientContext context, ILogger logger, ITaskbar taskbar, ITaskview taskview, IUserInterfaceFactory uiFactory) : base(context) { this.actionCenter = actionCenter; this.logger = logger; this.taskbar = taskbar; this.taskview = taskview; this.uiFactory = uiFactory; }
public ProctoringOperation( IActionCenter actionCenter, ClientContext context, IProctoringController controller, ILogger logger, INotification notification, ITaskbar taskbar, IUserInterfaceFactory uiFactory) : base(context) { this.actionCenter = actionCenter; this.controller = controller; this.logger = logger; this.notification = notification; this.taskbar = taskbar; this.uiFactory = uiFactory; }
public ShellOperation( IActionCenter actionCenter, IEnumerable <IActionCenterActivator> activators, ActionCenterSettings actionCenterSettings, IAudio audio, INotificationInfo aboutInfo, INotificationController aboutController, IKeyboard keyboard, ILogger logger, INotificationInfo logInfo, INotificationController logController, IPowerSupply powerSupply, ISystemInfo systemInfo, ITaskbar taskbar, TaskbarSettings taskbarSettings, ITerminationActivator terminationActivator, IText text, IUserInterfaceFactory uiFactory, IWirelessAdapter wirelessAdapter) { this.aboutInfo = aboutInfo; this.aboutController = aboutController; this.actionCenter = actionCenter; this.activators = activators; this.actionCenterSettings = actionCenterSettings; this.audio = audio; this.keyboard = keyboard; this.logger = logger; this.logInfo = logInfo; this.logController = logController; this.powerSupply = powerSupply; this.systemInfo = systemInfo; this.taskbarSettings = taskbarSettings; this.terminationActivator = terminationActivator; this.text = text; this.taskbar = taskbar; this.uiFactory = uiFactory; this.wirelessAdapter = wirelessAdapter; }
public ShellOperation( IActionCenter actionCenter, IEnumerable <IActionCenterActivator> activators, ActionCenterSettings actionCenterSettings, ILogger logger, INotificationInfo aboutInfo, INotificationController aboutController, INotificationInfo logInfo, INotificationController logController, ISystemComponent <ISystemKeyboardLayoutControl> keyboardLayout, ISystemComponent <ISystemPowerSupplyControl> powerSupply, ISystemComponent <ISystemWirelessNetworkControl> wirelessNetwork, ISystemInfo systemInfo, ITaskbar taskbar, TaskbarSettings taskbarSettings, ITerminationActivator terminationActivator, IText text, IUserInterfaceFactory uiFactory) { this.aboutInfo = aboutInfo; this.aboutController = aboutController; this.actionCenter = actionCenter; this.activators = activators; this.actionCenterSettings = actionCenterSettings; this.logger = logger; this.logInfo = logInfo; this.logController = logController; this.keyboardLayout = keyboardLayout; this.powerSupply = powerSupply; this.systemInfo = systemInfo; this.taskbarSettings = taskbarSettings; this.terminationActivator = terminationActivator; this.text = text; this.taskbar = taskbar; this.uiFactory = uiFactory; this.wirelessNetwork = wirelessNetwork; }
internal void BuildObjectGraph(Action shutdown) { ValidateCommandLineArguments(); InitializeLogging(); InitializeText(); context = new ClientContext(); uiFactory = BuildUserInterfaceFactory(); actionCenter = uiFactory.CreateActionCenter(); messageBox = BuildMessageBox(); nativeMethods = new NativeMethods(); runtimeProxy = new RuntimeProxy(runtimeHostUri, new ProxyObjectFactory(), ModuleLogger(nameof(RuntimeProxy)), Interlocutor.Client); systemInfo = new SystemInfo(); taskbar = uiFactory.CreateTaskbar(ModuleLogger("Taskbar")); taskview = uiFactory.CreateTaskview(); var processFactory = new ProcessFactory(ModuleLogger(nameof(ProcessFactory))); var applicationMonitor = new ApplicationMonitor(TWO_SECONDS, ModuleLogger(nameof(ApplicationMonitor)), nativeMethods, processFactory); var applicationFactory = new ApplicationFactory(applicationMonitor, ModuleLogger(nameof(ApplicationFactory)), nativeMethods, processFactory); var displayMonitor = new DisplayMonitor(ModuleLogger(nameof(DisplayMonitor)), nativeMethods, systemInfo); var explorerShell = new ExplorerShell(ModuleLogger(nameof(ExplorerShell)), nativeMethods); var fileSystemDialog = BuildFileSystemDialog(); var hashAlgorithm = new HashAlgorithm(); var splashScreen = uiFactory.CreateSplashScreen(); var operations = new Queue <IOperation>(); operations.Enqueue(new I18nOperation(logger, text)); operations.Enqueue(new RuntimeConnectionOperation(context, logger, runtimeProxy, authenticationToken)); operations.Enqueue(new ConfigurationOperation(context, logger, runtimeProxy)); operations.Enqueue(new DelegateOperation(UpdateAppConfig)); operations.Enqueue(new LazyInitializationOperation(BuildClientHostOperation)); operations.Enqueue(new ClientHostDisconnectionOperation(context, logger, FIVE_SECONDS)); operations.Enqueue(new LazyInitializationOperation(BuildKeyboardInterceptorOperation)); operations.Enqueue(new LazyInitializationOperation(BuildMouseInterceptorOperation)); operations.Enqueue(new ApplicationOperation(context, applicationFactory, applicationMonitor, logger, text)); operations.Enqueue(new DisplayMonitorOperation(context, displayMonitor, logger, taskbar)); operations.Enqueue(new LazyInitializationOperation(BuildShellOperation)); operations.Enqueue(new LazyInitializationOperation(BuildBrowserOperation)); operations.Enqueue(new ClipboardOperation(context, logger, nativeMethods)); var sequence = new OperationSequence(logger, operations); ClientController = new ClientController( actionCenter, applicationMonitor, context, displayMonitor, explorerShell, fileSystemDialog, hashAlgorithm, logger, messageBox, sequence, runtimeProxy, shutdown, splashScreen, taskbar, text, uiFactory); }
public DisplayMonitorOperation(IDisplayMonitor displayMonitor, ILogger logger, ITaskbar taskbar) { this.displayMonitor = displayMonitor; this.logger = logger; this.taskbar = taskbar; }
internal void BuildObjectGraph(Action shutdown) { ValidateCommandLineArguments(); configuration = new ClientConfiguration(); logger = new Logger(); nativeMethods = new NativeMethods(); systemInfo = new SystemInfo(); InitializeLogging(); InitializeText(); actionCenter = BuildActionCenter(); messageBox = BuildMessageBox(); processMonitor = new ProcessMonitor(new ModuleLogger(logger, nameof(ProcessMonitor)), nativeMethods); uiFactory = BuildUserInterfaceFactory(); runtimeProxy = new RuntimeProxy(runtimeHostUri, new ProxyObjectFactory(), new ModuleLogger(logger, nameof(RuntimeProxy)), Interlocutor.Client); taskbar = BuildTaskbar(); terminationActivator = new TerminationActivator(new ModuleLogger(logger, nameof(TerminationActivator))); windowMonitor = new WindowMonitor(new ModuleLogger(logger, nameof(WindowMonitor)), nativeMethods); var displayMonitor = new DisplayMonitor(new ModuleLogger(logger, nameof(DisplayMonitor)), nativeMethods, systemInfo); var explorerShell = new ExplorerShell(new ModuleLogger(logger, nameof(ExplorerShell)), nativeMethods); var hashAlgorithm = new HashAlgorithm(); var operations = new Queue <IOperation>(); operations.Enqueue(new I18nOperation(logger, text, textResource)); operations.Enqueue(new RuntimeConnectionOperation(logger, runtimeProxy, authenticationToken)); operations.Enqueue(new ConfigurationOperation(configuration, logger, runtimeProxy)); operations.Enqueue(new DelegateOperation(UpdateAppConfig)); operations.Enqueue(new LazyInitializationOperation(BuildClientHostOperation)); operations.Enqueue(new LazyInitializationOperation(BuildClientHostDisconnectionOperation)); operations.Enqueue(new LazyInitializationOperation(BuildKeyboardInterceptorOperation)); operations.Enqueue(new LazyInitializationOperation(BuildMouseInterceptorOperation)); operations.Enqueue(new LazyInitializationOperation(BuildWindowMonitorOperation)); operations.Enqueue(new LazyInitializationOperation(BuildProcessMonitorOperation)); operations.Enqueue(new DisplayMonitorOperation(displayMonitor, logger, taskbar)); operations.Enqueue(new LazyInitializationOperation(BuildShellOperation)); operations.Enqueue(new LazyInitializationOperation(BuildBrowserOperation)); operations.Enqueue(new ClipboardOperation(logger, nativeMethods)); operations.Enqueue(new DelegateOperation(UpdateClientControllerDependencies)); var sequence = new OperationSequence(logger, operations); ClientController = new ClientController( actionCenter, displayMonitor, explorerShell, hashAlgorithm, logger, messageBox, sequence, processMonitor, runtimeProxy, shutdown, taskbar, terminationActivator, text, uiFactory, windowMonitor); }
public DisplayMonitorOperation(ClientContext context, IDisplayMonitor displayMonitor, ILogger logger, ITaskbar taskbar) : base(context) { this.displayMonitor = displayMonitor; this.logger = logger; this.taskbar = taskbar; }