Phase 0 WP-0.10–0.12: Host skeleton, options classes, sample configs, and execution framework
- WP-0.10: Role-based Host startup (Central=WebApplication, Site=generic Host), 15 component AddXxx() extension methods, MapCentralUI/MapInboundAPI stubs - WP-0.11: 12 per-component options classes with config binding - WP-0.12: Sample appsettings for central and site topologies - Add execution procedure and checklist template to generate_plans.md - Add phase-0-checklist.md for execution tracking - Resolve all 21 open questions from plan generation - Update IDataConnection with batch ops and IAsyncDisposable 57 tests pass, zero warnings.
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
namespace ScadaLink.InboundAPI;
|
||||
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
12
src/ScadaLink.InboundAPI/EndpointExtensions.cs
Normal file
12
src/ScadaLink.InboundAPI/EndpointExtensions.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Microsoft.AspNetCore.Routing;
|
||||
|
||||
namespace ScadaLink.InboundAPI;
|
||||
|
||||
public static class EndpointExtensions
|
||||
{
|
||||
public static IEndpointRouteBuilder MapInboundAPI(this IEndpointRouteBuilder endpoints)
|
||||
{
|
||||
// Phase 0: skeleton only
|
||||
return endpoints;
|
||||
}
|
||||
}
|
||||
6
src/ScadaLink.InboundAPI/InboundApiOptions.cs
Normal file
6
src/ScadaLink.InboundAPI/InboundApiOptions.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace ScadaLink.InboundAPI;
|
||||
|
||||
public class InboundApiOptions
|
||||
{
|
||||
public TimeSpan DefaultMethodTimeout { get; set; } = TimeSpan.FromSeconds(30);
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
@@ -7,6 +7,10 @@
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../ScadaLink.Commons/ScadaLink.Commons.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
12
src/ScadaLink.InboundAPI/ServiceCollectionExtensions.cs
Normal file
12
src/ScadaLink.InboundAPI/ServiceCollectionExtensions.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace ScadaLink.InboundAPI;
|
||||
|
||||
public static class ServiceCollectionExtensions
|
||||
{
|
||||
public static IServiceCollection AddInboundAPI(this IServiceCollection services)
|
||||
{
|
||||
// Phase 0: skeleton only
|
||||
return services;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user