Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
Uses wolverine static code generation in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
redbaty committed Mar 2, 2024
1 parent 274b301 commit f10af3c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Wasari.Daemon/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#if RELEASE
using JasperFx.CodeGeneration;
#endif

using Oakton;
using Oakton.Resources;
using StackExchange.Redis;
Expand Down Expand Up @@ -81,6 +85,10 @@
builder.Host.UseWolverine(opts =>
{
opts.Durability.StaleNodeTimeout = TimeSpan.FromSeconds(10);

#if RELEASE
opts.CodeGeneration.TypeLoadMode = TypeLoadMode.Static;
#endif

var localQueueConfiguration = opts.LocalQueueFor<DownloadRequest>()
.UseDurableInbox();
Expand Down

0 comments on commit f10af3c

Please sign in to comment.