Add Connections to Sample Program
This commit is contained in:
parent
0d0360fb0b
commit
c4e3e42dbc
|
|
@ -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<Program>());
|
||||
elsa.UseConnectionsApi();
|
||||
});
|
||||
|
||||
services.Configure<WebhookSinksOptions>(options => configuration.GetSection("Webhooks").Bind(options));
|
||||
|
|
|
|||
Loading…
Reference in a new issue