Skip to content

Commit

Permalink
Split program into several projects
Browse files Browse the repository at this point in the history
  • Loading branch information
arenekosreal committed Nov 24, 2024
1 parent 36e8b16 commit 42835ed
Show file tree
Hide file tree
Showing 1,466 changed files with 42,368 additions and 141 deletions.
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
<PublishAot>false</PublishAot>
<IsAotCompatible>true</IsAotCompatible>
<JsonSerializerIsReflectionEnabledByDefault>false</JsonSerializerIsReflectionEnabledByDefault>
<EnableConfigurationBindingGenerator>true</EnableConfigurationBindingGenerator>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion E5Renewer.Controllers.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
global using Microsoft.VisualStudio.TestTools.UnitTesting;
global using Microsoft.VisualStudio.TestTools.UnitTesting;
2 changes: 1 addition & 1 deletion E5Renewer.Controllers.V1.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
global using Microsoft.VisualStudio.TestTools.UnitTesting;
global using Microsoft.VisualStudio.TestTools.UnitTesting;
4 changes: 2 additions & 2 deletions E5Renewer.Controllers.V1/IQueryCollectionExtends.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.Extensions.Primitives;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Primitives;

namespace E5Renewer.Controllers.V1;

Expand Down
2 changes: 1 addition & 1 deletion E5Renewer.Controllers.V1/JsonAPIV1Request.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Text.Json.Serialization;
using System.Collections.ObjectModel;
using System.Text.Json.Serialization;

namespace E5Renewer.Controllers.V1;

Expand Down
2 changes: 1 addition & 1 deletion E5Renewer.Controllers.V1/SimpleDummyResultGeneratorV1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

using E5Renewer.Models.Statistics;

using Microsoft.Extensions.Logging;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;

namespace E5Renewer.Controllers.V1;

Expand Down
2 changes: 1 addition & 1 deletion E5Renewer.Models.BackgroundServices.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
global using Microsoft.VisualStudio.TestTools.UnitTesting;
global using Microsoft.VisualStudio.TestTools.UnitTesting;
2 changes: 1 addition & 1 deletion E5Renewer.Models.BackgroundServices.Tests/UnitTest1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ public class UnitTest1
public void TestMethod1()
{
}
}
}
2 changes: 1 addition & 1 deletion E5Renewer.Models.BackgroundServices/PrepareUsersService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using E5Renewer.Models.Secrets;
using E5Renewer.Models.Statistics;

using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

namespace E5Renewer.Models.BackgroundServices
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.Extensions.Logging;
using Microsoft.Graph;

namespace E5Renewer.Models.GraphAPIs.APIFunctions.Admin;
namespace E5Renewer.Models.GraphAPIs.Admin;

/// <summary>Admin.Get api implementation.</summary>
[Module]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Microsoft.Graph" Version="5.63.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\E5Renewer.Models.Modules\E5Renewer.Models.Modules.csproj" />
<ProjectReference Include="..\E5Renewer.Models.GraphAPIs\E5Renewer.Models.GraphAPIs.csproj" />
</ItemGroup>

</Project>
28 changes: 28 additions & 0 deletions E5Renewer.Models.GraphAPIs.AgreementAcceptancesGet/Get.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using E5Renewer.Models.Modules;

using Microsoft.Extensions.Logging;
using Microsoft.Graph;

namespace E5Renewer.Models.GraphAPIs.AgreementAcceptancesGet;

/// <summary>AgreementAcceptances.Get api implementation.</summary>
[Module]
public class Get : BasicModule, IAPIFunction
{
/// <inheritdoc/>
public ILogger logger { get; }

/// <summary>Initialize <see cref="Get"/> class.</summary>
/// <param name="logger">The <see cref="ILogger{IAPIFunction}"/> implementation.</param>
/// <remarks>All params should be injected by Asp.Net Core.</remarks>
public Get(ILogger<Get> logger)
{
this.logger = logger;
}

/// <inheritdoc/>
public string id { get => "AgreementAcceptances.Get"; }

/// <inheritdoc/>
public async Task<object?> CallAsync(GraphServiceClient client) => await client.AgreementAcceptances.GetAsync();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Microsoft.Graph" Version="5.63.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\E5Renewer.Models.Modules\E5Renewer.Models.Modules.csproj" />
<ProjectReference Include="..\E5Renewer.Models.GraphAPIs\E5Renewer.Models.GraphAPIs.csproj" />
</ItemGroup>

</Project>
28 changes: 28 additions & 0 deletions E5Renewer.Models.GraphAPIs.Agreements/Get.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using E5Renewer.Models.Modules;

using Microsoft.Extensions.Logging;
using Microsoft.Graph;

namespace E5Renewer.Models.GraphAPIs.Agreements;

/// <summary>Agreements.Get api implementation.</summary>
[Module]
public class Get : BasicModule, IAPIFunction
{
/// <inheritdoc/>
public ILogger logger { get; }

/// <summary>Initialize <see cref="Get"/> class.</summary>
/// <param name="logger">The <see cref="ILogger{IAPIFunction}"/> implementation.</param>
/// <remarks>All params should be injected by Asp.Net Core.</remarks>
public Get(ILogger<Get> logger)
{
this.logger = logger;
}

/// <inheritdoc/>
public string id { get => "Agreements.Get"; }

/// <inheritdoc/>
public async Task<object?> CallAsync(GraphServiceClient client) => await client.Agreements.GetAsync();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Microsoft.Graph" Version="5.63.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\E5Renewer.Models.Modules\E5Renewer.Models.Modules.csproj" />
<ProjectReference Include="..\E5Renewer.Models.GraphAPIs\E5Renewer.Models.GraphAPIs.csproj" />
</ItemGroup>

</Project>
24 changes: 24 additions & 0 deletions E5Renewer.Models.GraphAPIs.AppCatalogs/Get.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using E5Renewer.Models.Modules;

using Microsoft.Extensions.Logging;
using Microsoft.Graph;

namespace E5Renewer.Models.GraphAPIs.AppCatalogs;
/// <summary>AppCatalogs.Get api implementation.</summary>
[Module]
public class Get : BasicModule, IAPIFunction
{
/// <inheritdoc/>
public ILogger logger { get; }

/// <summary>Initialize <see cref="Get"/> class.</summary>
/// <param name="logger">The <see cref="ILogger{IAPIFunction}"/> implementation.</param>
/// <remarks>All params should be injected by Asp.Net Core.</remarks>
public Get(ILogger<Get> logger) => this.logger = logger;

/// <inheritdoc/>
public string id { get => "AppCatalogs.Get"; }

/// <inheritdoc/>
public async Task<object?> CallAsync(GraphServiceClient client) => await client.AppCatalogs.GetAsync();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Microsoft.Graph" Version="5.63.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\E5Renewer.Models.Modules\E5Renewer.Models.Modules.csproj" />
<ProjectReference Include="..\E5Renewer.Models.GraphAPIs\E5Renewer.Models.GraphAPIs.csproj" />
</ItemGroup>

</Project>
24 changes: 24 additions & 0 deletions E5Renewer.Models.GraphAPIs.ApplicationTemplates/Get.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using E5Renewer.Models.Modules;

using Microsoft.Extensions.Logging;
using Microsoft.Graph;

namespace E5Renewer.Models.GraphAPIs.ApplicationTemplates;
/// <summary>ApplicationTemplates.Get api implementation.</summary>
[Module]
public class Get : BasicModule, IAPIFunction
{
/// <inheritdoc/>
public ILogger logger { get; }

/// <summary>Initialize <see cref="Get"/> class.</summary>
/// <param name="logger">The <see cref="ILogger{IAPIFunction}"/> implementation.</param>
/// <remarks>All params should be injected by Asp.Net Core.</remarks>
public Get(ILogger<Get> logger) => this.logger = logger;

/// <inheritdoc/>
public string id { get => "ApplicationTemplates.Get"; }

/// <inheritdoc/>
public async Task<object?> CallAsync(GraphServiceClient client) => await client.ApplicationTemplates.GetAsync();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Microsoft.Graph" Version="5.63.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\E5Renewer.Models.Modules\E5Renewer.Models.Modules.csproj" />
<ProjectReference Include="..\E5Renewer.Models.GraphAPIs\E5Renewer.Models.GraphAPIs.csproj" />
</ItemGroup>

</Project>
24 changes: 24 additions & 0 deletions E5Renewer.Models.GraphAPIs.Applications/Get.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using E5Renewer.Models.Modules;

using Microsoft.Extensions.Logging;
using Microsoft.Graph;

namespace E5Renewer.Models.GraphAPIs.Applications;
/// <summary>Applications.Get api implementation.</summary>
[Module]
public class Get : BasicModule, IAPIFunction
{
/// <inheritdoc/>
public ILogger logger { get; }

/// <summary>Initialize <see cref="Get"/> class.</summary>
/// <param name="logger">The <see cref="ILogger{IAPIFunction}"/> implementation.</param>
/// <remarks>All params should be injected by Asp.Net Core.</remarks>
public Get(ILogger<Get> logger) => this.logger = logger;

/// <inheritdoc/>
public string id { get => "Applications.Get"; }

/// <inheritdoc/>
public async Task<object?> CallAsync(GraphServiceClient client) => await client.Applications.GetAsync();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Microsoft.Graph" Version="5.63.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\E5Renewer.Models.Modules\E5Renewer.Models.Modules.csproj" />
<ProjectReference Include="..\E5Renewer.Models.GraphAPIs\E5Renewer.Models.GraphAPIs.csproj" />
</ItemGroup>

</Project>
24 changes: 24 additions & 0 deletions E5Renewer.Models.GraphAPIs.AuditLogs/Get.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using E5Renewer.Models.Modules;

using Microsoft.Extensions.Logging;
using Microsoft.Graph;

namespace E5Renewer.Models.GraphAPIs.AuditLogs;
/// <summary>AuditLogs.Get api implementation.</summary>
[Module]
public class Get : BasicModule, IAPIFunction
{
/// <inheritdoc/>
public ILogger logger { get; }

/// <summary>Initialize <see cref="Get"/> class.</summary>
/// <param name="logger">The <see cref="ILogger{IAPIFunction}"/> implementation.</param>
/// <remarks>All params should be injected by Asp.Net Core.</remarks>
public Get(ILogger<Get> logger) => this.logger = logger;

/// <inheritdoc/>
public string id { get => "AuditLogs.Get"; }

/// <inheritdoc/>
public async Task<object?> CallAsync(GraphServiceClient client) => await client.AuditLogs.GetAsync();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Microsoft.Graph" Version="5.63.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\E5Renewer.Models.Modules\E5Renewer.Models.Modules.csproj" />
<ProjectReference Include="..\E5Renewer.Models.GraphAPIs\E5Renewer.Models.GraphAPIs.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using E5Renewer.Models.Modules;

using Microsoft.Extensions.Logging;
using Microsoft.Graph;

namespace E5Renewer.Models.GraphAPIs.AuthenticationMethodConfigurations;
/// <summary>AuthenticationMethodConfigurations.Get api implementation.</summary>
[Module]
public class Get : BasicModule, IAPIFunction
{
/// <inheritdoc/>
public ILogger logger { get; }

/// <summary>Initialize <see cref="Get"/> class.</summary>
/// <param name="logger">The <see cref="ILogger{IAPIFunction}"/> implementation.</param>
/// <remarks>All params should be injected by Asp.Net Core.</remarks>
public Get(ILogger<Get> logger) => this.logger = logger;

/// <inheritdoc/>
public string id { get => "AuthenticationMethodConfigurations.Get"; }

/// <inheritdoc/>
public async Task<object?> CallAsync(GraphServiceClient client) => await client.AuthenticationMethodConfigurations.GetAsync();
}
Loading

0 comments on commit 42835ed

Please sign in to comment.