Add microservices scaffold

This commit is contained in:
Alexa
2026-06-15 14:01:23 +03:00
parent ac3432bf9a
commit 53bf0054fd
22 changed files with 567 additions and 0 deletions
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\DorkNet.Contracts\DorkNet.Contracts.csproj" />
<ProjectReference Include="..\DorkNet.ServiceDefaults\DorkNet.ServiceDefaults.csproj" />
</ItemGroup>
</Project>
+28
View File
@@ -0,0 +1,28 @@
using DorkNet.Contracts;
using DorkNet.ServiceDefaults;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddJsonFile("appsettings.Local.json",
optional: true, reloadOnChange: true);
builder.AddDorkNetServiceDefaults(ServiceNames.Notify);
var app = builder.Build();
app.MapDorkNetServiceDefaults();
app.MapGet("/internal/notify/capabilities", () =>
Results.Ok(new ServiceCapabilityResponse(
ServiceNames.Notify,
[
"signalr-edge",
"notification-fanout",
"presence",
"player-request-logs",
],
[
"/hub/v1",
"/api/notification/*",
"/player/*presence*",
])));
app.Run();
+8
View File
@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}