Skip to content

Commit

Permalink
keeping the code to repro GH-1114
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Nov 4, 2024
1 parent 9763ae6 commit 583b10a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/Samples/OrderManagement/Orders/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Npgsql;
using Orders;
using Wolverine;
using Wolverine.Marten;
using Wolverine.RabbitMQ;

var hostBuilder = Host.CreateDefaultBuilder(args);
Expand All @@ -25,14 +26,15 @@
options.DisableNpgsqlLogging = true;
}
)
.UseLightweightSessions();
// .IntegrateWithWolverine();
.UseLightweightSessions().IntegrateWithWolverine();
}
);
hostBuilder
.UseWolverine(
options =>
{
options.Policies.AutoApplyTransactions();

options
.ListenToRabbitQueue(
"new-orders",
Expand Down
4 changes: 3 additions & 1 deletion src/Samples/OrderManagement/RetailClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using RetailClient;
using RetailClient.Data;
using Wolverine;
using Wolverine.Marten;
using Wolverine.RabbitMQ;

var host = Host.CreateDefaultBuilder(args)
Expand All @@ -23,8 +24,9 @@
{
options.Connection(Servers.PostgresConnectionString);
options.Events.StreamIdentity = StreamIdentity.AsString;
options.DisableNpgsqlLogging = true;
}
).InitializeWith(new InitialData(InitialDatasets.Customers));
).InitializeWith(new InitialData(InitialDatasets.Customers)).IntegrateWithWolverine();
}
)
.UseWolverine(
Expand Down

0 comments on commit 583b10a

Please sign in to comment.