part #2
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
using StellaOps.EvidenceLocker.Infrastructure.DependencyInjection;
|
||||
using StellaOps.EvidenceLocker.Worker;
|
||||
using StellaOps.Worker.Health;
|
||||
|
||||
var builder = Host.CreateApplicationBuilder(args);
|
||||
var builder = WebApplication.CreateSlimBuilder(args);
|
||||
|
||||
builder.Services.AddEvidenceLockerInfrastructure(builder.Configuration);
|
||||
builder.Services.AddHostedService<Worker>();
|
||||
builder.Services.AddWorkerHealthChecks();
|
||||
|
||||
var host = builder.Build();
|
||||
await host.RunAsync();
|
||||
var app = builder.Build();
|
||||
app.MapWorkerHealthEndpoints();
|
||||
await app.RunAsync();
|
||||
|
||||
@@ -14,10 +14,14 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
|
||||
@@ -35,8 +39,11 @@
|
||||
|
||||
|
||||
<ProjectReference Include="..\StellaOps.EvidenceLocker.Infrastructure\StellaOps.EvidenceLocker.Infrastructure.csproj"/>
|
||||
|
||||
|
||||
|
||||
|
||||
<ProjectReference Include="../../../../__Libraries/StellaOps.Worker.Health/StellaOps.Worker.Health.csproj"/>
|
||||
|
||||
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
{
|
||||
Logging: {
|
||||
LogLevel: {
|
||||
Default: Information,
|
||||
Microsoft.Hosting.Lifetime: Information
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
},
|
||||
EvidenceLocker: {
|
||||
Database: {
|
||||
ConnectionString: Host=localhost
|
||||
"EvidenceLocker": {
|
||||
"Database": {
|
||||
"ConnectionString": "Host=localhost"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
{
|
||||
Logging: {
|
||||
LogLevel: {
|
||||
Default: Information,
|
||||
Microsoft.Hosting.Lifetime: Information
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
},
|
||||
EvidenceLocker: {
|
||||
Database: {
|
||||
ConnectionString: Host=localhost
|
||||
"EvidenceLocker": {
|
||||
"Database": {
|
||||
"ConnectionString": "Host=localhost"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user