Skip to content

Commit

Permalink
Used Wolverine in Host and added Integration with Marten's outbox
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Aug 2, 2023
1 parent 1609bf6 commit 7c77750
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Sample/Helpdesk.Wolverine/Helpdesk.Api/Program.cs
Expand Up @@ -20,6 +20,8 @@
using Microsoft.AspNetCore.SignalR;
using Oakton;
using Weasel.Core;
using Wolverine;
using Wolverine.Marten;
using static Microsoft.AspNetCore.Http.TypedResults;
using static Helpdesk.Api.Incidents.IncidentService;
using static Helpdesk.Api.Core.Http.ETagExtensions;
Expand Down Expand Up @@ -63,7 +65,9 @@
})
.OptimizeArtifactWorkflow(TypeLoadMode.Static)
.UseLightweightSessions()
.AddAsyncDaemon(DaemonMode.Solo);
.AddAsyncDaemon(DaemonMode.Solo)
// Add Marten/PostgreSQL integration with Wolverine's outbox
.IntegrateWithWolverine();

builder.Services
.AddCors(options =>
Expand All @@ -80,6 +84,8 @@
.AddSignalR();

builder.Host.ApplyOaktonExtensions();
// Configure Wolverine
builder.Host.UseWolverine();

var app = builder.Build();

Expand Down

0 comments on commit 7c77750

Please sign in to comment.