Skip to content

Commit

Permalink
feat: Add Systemd support and update package references
Browse files Browse the repository at this point in the history
- Added support for Systemd in the Startup class
- Updated package references to include Microsoft.Extensions.Hosting.Systemd
  • Loading branch information
SakuraIsayeki committed Feb 2, 2024
1 parent 0d06370 commit c001613
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -371,3 +371,5 @@ wowskarma.app/pnpm-lock.yaml
.store/

wowskarma.api.minimap/main.py

WowsKarma.Api/appsettings.Preview.json
4 changes: 3 additions & 1 deletion WowsKarma.Api/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,16 @@ public void ConfigureServices(IServiceCollection services)
});

services.AddResiliencePolicies();

services.AddSystemd();
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UseETagger();
app.UseResponseCompression();

app.UseSwagger();
app.UseSwaggerUI(c =>
{
Expand Down
1 change: 1 addition & 0 deletions WowsKarma.Api/WowsKarma.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="8.0.0" />
<PackageReference Include="NodaTime" Version="3.1.9" />
<PackageReference Include="Nodsoft.Wargaming.Api.Client" Version="0.3.5" />
<PackageReference Include="Nodsoft.WowsReplaysUnpack.ExtendedData" Version="2.0.1" />
Expand Down

0 comments on commit c001613

Please sign in to comment.