Skip to content

Commit edd373b

Browse files
authored
Merge pull request #17 from CodeFactoryLLC/BlazorServerDemo
Initial definition of demo architecture to be used with multiple exam…
2 parents 0b3b9b2 + 4558edd commit edd373b

File tree

130 files changed

+4034
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+4034
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using System;
2+
3+
namespace Demo.Arch.Abstraction.Contracts
4+
{
5+
public class Class1
6+
{
7+
8+
}
9+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.1</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<ProjectReference Include="..\Demo.Arch.App.Model\Demo.Arch.App.Model.csproj" />
10+
</ItemGroup>
11+
12+
</Project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Demo.Arch.Abstraction.Transport.Rest
2+
{
3+
public class Class1
4+
{
5+
6+
}
7+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net6.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="CodeFactory.NDF" Version="1.23111.1" />
11+
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
12+
</ItemGroup>
13+
14+
<ItemGroup>
15+
<ProjectReference Include="..\Demo.Arch.Abstraction.Contracts\Demo.Arch.Abstraction.Contracts.csproj" />
16+
<ProjectReference Include="..\Demo.Arch.App.Model\Demo.Arch.App.Model.csproj" />
17+
<ProjectReference Include="..\Demo.Arch.Transport.Rest.Model\Demo.Arch.Transport.Rest.Model.csproj" />
18+
</ItemGroup>
19+
20+
</Project>
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
using CodeFactory.NDF;
2+
using Microsoft.Extensions.Configuration;
3+
using Microsoft.Extensions.DependencyInjection;
4+
using System;
5+
using System.Collections.Generic;
6+
using System.Linq;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
10+
namespace Demo.Arch.Abstraction.Transport.Rest
11+
{
12+
/// <summary>
13+
/// Provides dependency injection management for this library.
14+
/// </summary>
15+
public class LibraryLoader : DependencyInjectionLoader
16+
{
17+
/// <summary>
18+
/// Loads child libraries that are subscribed to by this library.
19+
/// </summary>
20+
/// <param name="serviceCollection">The dependency injection provider to register services with.</param>
21+
/// <param name="configuration">The source configuration to provide for dependency injection.</param>
22+
protected override void LoadLibraries(IServiceCollection serviceCollection, IConfiguration configuration)
23+
{
24+
//Add child libraries to load if nessecary.
25+
}
26+
27+
/// <summary>
28+
/// Loads dependency injections that are setup and configured manually.
29+
/// </summary>
30+
/// <param name="serviceCollection">The dependency injection provider to register services with.</param>
31+
/// <param name="configuration">The source configuration to provide for dependency injection.</param>
32+
protected override void LoadManualRegistration(IServiceCollection serviceCollection, IConfiguration configuration)
33+
{
34+
//Manual register singlton and other services that cannot be loaded through automation.
35+
}
36+
37+
/// <summary>
38+
/// Loads dependency injections that are setup and configured manually.
39+
/// </summary>
40+
/// <param name="serviceCollection">The dependency injection provider to register services with.</param>
41+
/// <param name="configuration">The source configuration to provide for dependency injection.</param>
42+
protected override void LoadRegistration(IServiceCollection serviceCollection, IConfiguration configuration)
43+
{
44+
//Auto generation for transient classes through automation.
45+
}
46+
}
47+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using System;
2+
3+
namespace Demo.Arch.App.Model
4+
{
5+
public class Class1
6+
{
7+
8+
}
9+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.1</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
</PropertyGroup>
7+
8+
</Project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Demo.Arch.Client.Maui.Model
2+
{
3+
// All the code in this file is included in all platforms.
4+
public class Class1
5+
{
6+
}
7+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net7.0;net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
6+
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
7+
<!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
8+
<UseMaui>true</UseMaui>
9+
<SingleProject>true</SingleProject>
10+
<ImplicitUsings>enable</ImplicitUsings>
11+
12+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
13+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">14.0</SupportedOSPlatformVersion>
14+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
15+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
16+
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
17+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
18+
</PropertyGroup>
19+
20+
</Project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Demo.Arch.Client.Maui.Model
2+
{
3+
// All the code in this file is only included on Android.
4+
public class PlatformClass1
5+
{
6+
}
7+
}

0 commit comments

Comments
 (0)