Skip to content

Commit 792be03

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into main
2 parents a5232c9 + 00b0204 commit 792be03

18 files changed

+399
-19
lines changed

.build/BuildToolkit.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Tool Versions
2-
$NunitVersion = "3.11.1";
2+
$NunitVersion = "3.12.0";
33
$OpenCoverVersion = "4.7.922";
44
$DocFxVersion = "2.56.2";
5-
$ReportGeneratorVersion = "4.6.7";
5+
$ReportGeneratorVersion = "4.8.7";
66

77
# Folder Pathes
88
$RootPath = $MyInvocation.PSScriptRoot;

Directory.Build.targets

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33

44
<PropertyGroup>
5-
<MoryxPlatformVersion>3.0.0</MoryxPlatformVersion>
5+
<MoryxCoreVersion>3.2.0</MoryxCoreVersion>
66
</PropertyGroup>
77

88
<Import Project=".build\Common.props" Condition="'$(CreatePackage)' == 'true'" />
@@ -24,9 +24,9 @@
2424
<PackageReference Update="NUnit3TestAdapter" Version="3.17.0" />
2525

2626
<!--Platform dependencies-->
27-
<PackageReference Update="Moryx" Version="$(MoryxPlatformVersion)" />
28-
<PackageReference Update="Moryx.Tools.Wcf" Version="$(MoryxPlatformVersion)" />
29-
<PackageReference Update="Moryx.Container" Version="$(MoryxPlatformVersion)" />
27+
<PackageReference Update="Moryx" Version="$(MoryxCoreVersion)" />
28+
<PackageReference Update="Moryx.Tools.Wcf" Version="$(MoryxCoreVersion)" />
29+
<PackageReference Update="Moryx.Container" Version="$(MoryxCoreVersion)" />
3030
</ItemGroup>
3131

3232
</Project>

Directory.build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<LangVersion>8.0</LangVersion>
3+
<LangVersion>9.0</LangVersion>
44
</PropertyGroup>
55

66
<PropertyGroup>

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.1
1+
3.1.0

src/Moryx.ClientFramework.Kernel/Configuration/LocalConfigProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public LocalConfigProvider(IConfigManager configManager, ModulesConfiguration mo
2424
_configManager = configManager;
2525
}
2626

27-
///
27+
/// <inheritdoc />
2828
public T GetModuleConfiguration<T>(string name) where T : class, IClientModuleConfig, new()
2929
{
3030
var config = GetConfiguration<T>();
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using Moryx.Identity;
2+
3+
namespace Moryx.ClientFramework.Kernel
4+
{
5+
/// <summary>
6+
/// Extensions for the <see cref="HeartOfLead"/>
7+
/// </summary>
8+
public static class ApplicationRuntimeExtensions
9+
{
10+
/// <summary>
11+
/// Method to register a custom ClaimsAuthorizationManager
12+
/// </summary>
13+
public static void EnableAuthorization(this IApplicationRuntime hol, IAuthorizationContext authorizationContext)
14+
{
15+
IdentityConfiguration.CurrentContext = authorizationContext;
16+
}
17+
}
18+
}

src/Moryx.ClientFramework.Kernel/HeartOfLead.cs

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using Caliburn.Micro;
1616
using CommandLine;
1717
using Moryx.ClientFramework.Localization;
18+
using Moryx.Configuration;
1819
using Moryx.Container;
1920
using Moryx.Logging;
2021
using Moryx.Threading;
@@ -24,7 +25,7 @@
2425
namespace Moryx.ClientFramework.Kernel
2526
{
2627
/// <summary>
27-
/// Main class to create ClientFramwork UI's
28+
/// Main class to create ClientFramework UIs
2829
/// </summary>
2930
public class HeartOfLead : HeartOfLead<DefaultCommandLineArguments>
3031
{
@@ -35,16 +36,21 @@ public HeartOfLead(string[] args) : base(args)
3536
}
3637

3738
/// <summary>
38-
/// Main class to create ClientFramwork UI's
39+
/// Main class to create ClientFramework UIs
3940
/// </summary>
40-
public class HeartOfLead<TCommandLineArguments> : ILoggingHost
41+
public class HeartOfLead<TCommandLineArguments> : IApplicationRuntime, ILoggingHost
4142
where TCommandLineArguments : DefaultCommandLineArguments
4243
{
4344
#region Fields and Properties
4445

4546
string ILoggingHost.Name => "ClientKernel";
47+
48+
/// <inheritdoc />
4649
IModuleLogger ILoggingHost.Logger { get; set; }
4750

51+
/// <inheritdoc />
52+
IContainer IApplicationRuntime.GlobalContainer => _container;
53+
4854
/// <summary>
4955
/// Returns the current <see cref="AppConfig"/>
5056
/// </summary>
@@ -58,7 +64,7 @@ public class HeartOfLead<TCommandLineArguments> : ILoggingHost
5864
/// <summary>
5965
/// Flag if the HeartOfLead is initialized
6066
/// </summary>
61-
public bool IsInitialied { get; private set; }
67+
public bool IsInitialied { get; private set; } // TODO: Rename to IsInitialized in the next major
6268

6369
private GlobalContainer _container;
6470
private IKernelConfigManager _configManager;
@@ -100,7 +106,7 @@ public void Initialize()
100106
if (IsInitialied)
101107
throw new InvalidOperationException("HeartOfLead is already initialized!");
102108

103-
// Initialize platfrom
109+
// Initialize platform
104110
WpfPlatform.SetProduct();
105111

106112
// Attach this Application to the console.
@@ -331,7 +337,8 @@ private void LoadConfiguration()
331337

332338
// Configure config manager
333339
_configManager = new KernelConfigManager { ConfigDirectory = CommandLineOptions.ConfigFolder };
334-
_container.SetInstance(_configManager);
340+
_container.SetInstance<IKernelConfigManager>(_configManager, "KernelConfigManager");
341+
_container.SetInstance<IConfigManager>(_configManager, "ConfigManager");
335342

336343
// Load global app config
337344
AppConfig = _configManager.GetConfiguration<AppConfig>();

src/Moryx.ClientFramework.Kernel/RunMode/LocalRunMode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected override Predicate<Type> TypeLoadFilter
2525
get { return type => type.GetCustomAttribute<ComponentForRunModeAttribute>() == null; }
2626
}
2727

28-
/// <inheritdoc />
28+
/// <inheritdoc />
2929
public override void LoadModulesConfiguration()
3030
{
3131
var modulesConfig = ConfigManager.GetConfiguration<ModulesConfiguration>();

src/Moryx.ClientFramework.Kernel/RunMode/LocalRunModeBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace Moryx.ClientFramework.Kernel
1212
{
1313
/// <summary>
14-
/// Base class for local run modes.
14+
/// Base class for local run modes.
1515
/// Will load <see cref="IClientModule"/> and <see cref="IModuleShell"/> from the app domain
1616
/// </summary>
1717
public abstract class LocalRunModeBase : RunModeBase
@@ -21,7 +21,7 @@ public abstract class LocalRunModeBase : RunModeBase
2121
/// <summary>
2222
/// Config manager to load kernel configurations
2323
/// </summary>
24-
public IKernelConfigManager ConfigManager { get; set; }
24+
public IKernelConfigManager ConfigManager { get; set; } // TODO: Change type to IConfigManager in future
2525

2626
#endregion
2727

@@ -75,7 +75,7 @@ public override void Initialize()
7575
///
7676
public override void LoadModulesConfiguration()
7777
{
78-
78+
7979
}
8080
}
8181
}

src/Moryx.ClientFramework/Moryx.ClientFramework.csproj.DotSettings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=module_005Cnewfolder1/@EntryIndexedValue">True</s:Boolean>
1212
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=module_005C_0023/@EntryIndexedValue">True</s:Boolean>
1313
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=module_005Cdummy/@EntryIndexedValue">True</s:Boolean>
14+
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=principals_005Cmarkup/@EntryIndexedValue">True</s:Boolean>
1415
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=region/@EntryIndexedValue">True</s:Boolean>
1516
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=ScreenPlugin/@EntryIndexedValue">True</s:Boolean>
1617
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=shell_005Cabout/@EntryIndexedValue">True</s:Boolean>

0 commit comments

Comments
 (0)