Skip to content

Commit 1d6b54f

Browse files
committed
SEBWIN-981: Refactored browser application using the responsibility model.
1 parent ae35b46 commit 1d6b54f

23 files changed

+2064
-1135
lines changed

SafeExamBrowser.Browser/BrowserApplication.cs

Lines changed: 47 additions & 409 deletions
Large diffs are not rendered by default.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright (c) 2025 ETH Zürich, IT Services
3+
*
4+
* This Source Code Form is subject to the terms of the Mozilla Public
5+
* License, v. 2.0. If a copy of the MPL was not distributed with this
6+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7+
*/
8+
9+
using System.Collections.Generic;
10+
using CefSharp.WinForms;
11+
using SafeExamBrowser.Browser.Responsibilities;
12+
using SafeExamBrowser.Configuration.Contracts;
13+
using SafeExamBrowser.Core.Contracts.ResponsibilityModel;
14+
using SafeExamBrowser.Logging.Contracts;
15+
using SafeExamBrowser.Settings.Browser;
16+
17+
namespace SafeExamBrowser.Browser
18+
{
19+
internal class BrowserApplicationContext
20+
{
21+
internal AppConfig AppConfig { get; set; }
22+
internal CefSettings CefSettings { get; set; }
23+
internal IModuleLogger Logger { get; set; }
24+
internal IResponsibilityCollection<BrowserTask> Responsibilities { get; set; }
25+
internal BrowserSettings Settings { get; set; }
26+
internal IList<BrowserWindow> Windows { get; set; }
27+
28+
internal BrowserApplicationContext()
29+
{
30+
Windows = new List<BrowserWindow>();
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)