Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 36 additions & 36 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,50 +8,50 @@
<PackageVersion Include="AspNetCore.HealthChecks.UI.Client" Version="9.0.0" />
<PackageVersion Include="AspNetCore.HealthChecks.UI.InMemory.Storage" Version="9.0.0" />
<PackageVersion Include="AspNetCore.HealthChecks.Uris" Version="9.0.0" />
<PackageVersion Include="CallbackHandler.DataTransferObjects" Version="2025.12.4" />
<PackageVersion Include="ClientProxyBase" Version="2026.8.3" />
<PackageVersion Include="CallbackHandler.DataTransferObjects" Version="2026.9.2.161" />
<PackageVersion Include="ClientProxyBase" Version="2026.9.3" />
<PackageVersion Include="coverlet.collector" Version="10.0.1" />
<PackageVersion Include="coverlet.msbuild" Version="10.0.1" />
<PackageVersion Include="Ductus.FluentDocker" Version="2.85.0" />
<PackageVersion Include="EntityFrameworkCore.Exceptions.Common" Version="10.0.1" />
<PackageVersion Include="EntityFrameworkCore.Exceptions.SqlServer" Version="10.0.1" />
<PackageVersion Include="EventStoreProjections" Version="2023.12.3" />
<PackageVersion Include="FileProcessor.File.DomainEvents" Version="2026.8.1" />
<PackageVersion Include="FileProcessor.FileImportLog.DomainEvents" Version="2026.8.1" />
<PackageVersion Include="FileProcessor.File.DomainEvents" Version="2026.9.2.152" />
<PackageVersion Include="FileProcessor.FileImportLog.DomainEvents" Version="2026.9.2.152" />
<PackageVersion Include="Lamar" Version="16.0.0" />
<PackageVersion Include="Lamar.Microsoft.DependencyInjection" Version="16.0.0" />
<PackageVersion Include="MediatR" Version="14.2.0" />
<PackageVersion Include="MessagingService.Client" Version="2026.8.1" />
<PackageVersion Include="MessagingService.IntegrationTesting.Helpers" Version="2026.8.1" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.11" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.11" />
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="10.0.11" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.11" />
<PackageVersion Include="MessagingService.Client" Version="2026.9.2.149" />
<PackageVersion Include="MessagingService.IntegrationTesting.Helpers" Version="2026.9.2.149" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.12" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.12" />
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="10.0.12" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.12" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.DynamicLinq" Version="10.7.4" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="10.0.11" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Relational" Version="10.0.11" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.11" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.11" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.11" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.11" />
<PackageVersion Include="Microsoft.Extensions.Hosting.WindowsServices" Version="10.0.11" />
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="10.0.11" />
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="10.0.11" />
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport" Version="2.3.3" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="10.0.12" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Relational" Version="10.0.12" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.12" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.12" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.12" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.12" />
<PackageVersion Include="Microsoft.Extensions.Hosting.WindowsServices" Version="10.0.12" />
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="10.0.12" />
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="10.0.12" />
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport" Version="2.4.0" />
<PackageVersion Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.22.0" />
<PackageVersion Include="Microsoft.IdentityModel.Tokens" Version="8.22.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.9.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.10.0" />
<PackageVersion Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.23.0" />
<PackageVersion Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="10.0.2" />
<PackageVersion Include="Imposter" Version="0.1.9" />
<PackageVersion Include="Imposter" Version="0.1.11" />
<PackageVersion Include="NetBarcode" Version="1.8.3" />
<PackageVersion Include="NLog.Extensions.Logging" Version="6.2.0" />
<PackageVersion Include="NuGet.Packaging" Version="7.9.0" />
<PackageVersion Include="NuGet.Protocol" Version="7.9.0" />
<PackageVersion Include="NUnit" Version="4.6.1" />
<PackageVersion Include="NUnit3TestAdapter" Version="6.3.0" />
<PackageVersion Include="OpenIddict.Validation.AspNetCore" Version="7.6.1" />
<PackageVersion Include="OpenIddict.Validation.SystemNetHttp" Version="7.6.1" />
<PackageVersion Include="OpenIddict.Validation.AspNetCore" Version="7.7.0" />
<PackageVersion Include="OpenIddict.Validation.SystemNetHttp" Version="7.7.0" />
<PackageVersion Include="OpenTelemetry.Api" Version="1.18.0" />
<PackageVersion Include="Polly" Version="8.7.0" />
<PackageVersion Include="Pomelo.EntityFrameworkCore.MySql" Version="8.0.2" />
Expand All @@ -61,15 +61,15 @@
<PackageVersion Include="Reqnroll.NUnit" Version="3.3.4" />
<PackageVersion Include="Reqnroll.Tools.MsBuild.Generation" Version="3.3.4" />
<PackageVersion Include="RichardSzalay.MockHttp" Version="7.1.0" />
<PackageVersion Include="SecurityService.Client" Version="2026.8.1" />
<PackageVersion Include="SecurityService.IntegrationTesting.Helpers" Version="2026.8.1" />
<PackageVersion Include="Sentry.AspNetCore" Version="6.9.0" />
<PackageVersion Include="Shared" Version="2026.8.3" />
<PackageVersion Include="Shared.DomainDrivenDesign" Version="2026.8.3" />
<PackageVersion Include="Shared.EventStore" Version="2026.8.3" />
<PackageVersion Include="Shared.IntegrationTesting" Version="2026.8.3" />
<PackageVersion Include="Shared.Results" Version="2026.8.3" />
<PackageVersion Include="Shared.Results.Web" Version="2026.8.3" />
<PackageVersion Include="SecurityService.Client" Version="2026.9.2.178" />
<PackageVersion Include="SecurityService.IntegrationTesting.Helpers" Version="2026.9.2.178" />
<PackageVersion Include="Sentry.AspNetCore" Version="6.11.0" />
<PackageVersion Include="Shared" Version="2026.9.3" />
<PackageVersion Include="Shared.DomainDrivenDesign" Version="2026.9.3" />
<PackageVersion Include="Shared.EventStore" Version="2026.9.3" />
<PackageVersion Include="Shared.IntegrationTesting" Version="2026.9.3" />
<PackageVersion Include="Shared.Results" Version="2026.9.3" />
<PackageVersion Include="Shared.Results.Web" Version="2026.9.3" />
<PackageVersion Include="Shouldly" Version="4.3.0" />
<PackageVersion Include="Swashbuckle.AspNetCore" Version="10.2.3" />
<PackageVersion Include="Swashbuckle.AspNetCore.Annotations" Version="10.2.3" />
Expand All @@ -79,13 +79,13 @@
<PackageVersion Include="Swashbuckle.AspNetCore.SwaggerUI" Version="10.2.3" />
<PackageVersion Include="System.IO.Abstractions" Version="22.2.0" />
<PackageVersion Include="System.IO.Abstractions.TestingHelpers" Version="22.2.0" />
<PackageVersion Include="System.Security.Cryptography.Xml" Version="10.0.11" />
<PackageVersion Include="System.Security.Cryptography.Xml" Version="10.0.12" />
<PackageVersion Include="System.ServiceModel.Duplex" Version="6.0.0" />
<PackageVersion Include="System.ServiceModel.Federation" Version="10.0.652802" />
<PackageVersion Include="System.ServiceModel.Http" Version="10.0.652802" />
<PackageVersion Include="System.ServiceModel.NetTcp" Version="10.0.652802" />
<PackageVersion Include="System.ServiceModel.Security" Version="6.0.0" />
<PackageVersion Include="TestHosts.Clients" Version="2026.8.1" />
<PackageVersion Include="TestHosts.Clients" Version="2026.9.2.88" />
<PackageVersion Include="xunit.v3" Version="4.0.0" />
<PackageVersion Include="xunit.v3.mtp-v2" Version="4.0.0" />
<PackageVersion Include="xunit.v3.extensibility.core" Version="4.0.0" />
Expand All @@ -104,4 +104,4 @@
<ItemGroup Condition="'$(MSBuildProjectName)' == 'TransactionProcessor.Reconciliation.DomainEvents'">
<PackageVersion Include="Shared.DomainDrivenDesign" Version="2025.1.2" />
</ItemGroup>
</Project>
</Project>
2 changes: 2 additions & 0 deletions TransactionProcessor/Bootstrapper/MiddlewareRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Microsoft.OpenApi;
using OpenIddict.Validation.AspNetCore;
using Shared.Logger;
using Shared.Monitoring;

namespace TransactionProcessor.Bootstrapper
{
Expand Down Expand Up @@ -54,6 +55,7 @@ public MiddlewareRegistry()
this.ConfigureMvc();
this.ConfigureAuthorization();
this.ConfigureJsonOptions();
this.AddUptimeKuma();
}

#endregion
Expand Down
13 changes: 12 additions & 1 deletion TransactionProcessor/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Prometheus;
using System.Linq;
using System.Threading;
using Shared.Monitoring;
using TransactionProcessor.BusinessLogic.Services;
using TransactionProcessor.Endpoints;

Expand All @@ -16,6 +17,7 @@ namespace TransactionProcessor
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.IdentityModel.Protocols.WsTrust;
using NLog;
using NLog.Extensions.Logging;
using Shared.EventStore.Aggregate;
Expand Down Expand Up @@ -93,7 +95,8 @@ public Startup(IWebHostEnvironment webHostEnvironment) {
/// <param name="provider">The provider.</param>
public void Configure(IApplicationBuilder app,
IWebHostEnvironment env,
ILoggerFactory loggerFactory) {
ILoggerFactory loggerFactory,
IHostApplicationLifetime lifetime, IHost host) {
ConfigurationReader.Initialise(Startup.Configuration);

if (env.IsDevelopment()) {
Expand All @@ -119,6 +122,14 @@ public void Configure(IApplicationBuilder app,
this.ConfigureEndpoints(app);

app.PreWarm();

lifetime.ApplicationStarted.Register(() =>
{
host.RegisterWithUptimeKumaAsync()
.GetAwaiter()
.GetResult();
Comment thread
StuartFerguson marked this conversation as resolved.
Resolved
});

this.TraceLoadedTokenAssemblies();
}

Expand Down
9 changes: 8 additions & 1 deletion TransactionProcessor/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,13 @@
]
}
},
"UptimeKuma": {
"Monitor": {
"Name": "Transaction Processor",
"Url": "http://localhost:5002/health",
"IntervalInSeconds": 60
}
},
"ConnectionStrings": {
"TransactionProcessorReadModel": "server=192.168.1.163;user id=sa;password=Sc0tland;database=TransactionProcessorReadModel;Encrypt=false"
},
Expand Down Expand Up @@ -219,7 +226,7 @@
"ApiLogonRequired": true
},
"AgencyBanking": {
"Url": "http://192.168.1.163:9000/api/agencybanking",
"Url": "http://192.168.1.163:9000/api/agencybanking",
"ApiLogonRequired": false
}
}
Expand Down
Loading