diff --git a/Wasari.Daemon/Program.cs b/Wasari.Daemon/Program.cs index 4e452c5..575d6bc 100644 --- a/Wasari.Daemon/Program.cs +++ b/Wasari.Daemon/Program.cs @@ -1,3 +1,7 @@ +#if RELEASE +using JasperFx.CodeGeneration; +#endif + using Oakton; using Oakton.Resources; using StackExchange.Redis; @@ -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() .UseDurableInbox();