From c4e3e42dbcaeac353f5d60059b1033fa481590c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20DEVILLARD?= Date: Mon, 10 Feb 2025 12:40:14 +0100 Subject: [PATCH] Add Connections to Sample Program --- src/apps/Elsa.ServerAndStudio.Web/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/apps/Elsa.ServerAndStudio.Web/Program.cs b/src/apps/Elsa.ServerAndStudio.Web/Program.cs index 581f25ec5..d5e13c05c 100644 --- a/src/apps/Elsa.ServerAndStudio.Web/Program.cs +++ b/src/apps/Elsa.ServerAndStudio.Web/Program.cs @@ -13,6 +13,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.Data.Sqlite; using Proto.Persistence.Sqlite; using WebhooksCore.Options; +using Elsa.Connections.Middleware; const bool useMassTransit = true; const bool useProtoActor = true; @@ -189,6 +190,10 @@ services if (distributedCachingTransport == DistributedCachingTransport.MassTransit) distributedCaching.UseMassTransit(); }); } + + elsa.UseConnections( + configure=> configure.AddConnectionsFrom()); + elsa.UseConnectionsApi(); }); services.Configure(options => configuration.GetSection("Webhooks").Bind(options));