elsa-core/src/samples/server/Elsa.Samples.Server.Host
axeleron007 e00fc41887 Stop using arrays for Features in the appsettings
Stop using arrays for Features in the appsettings
2021-07-06 10:23:17 +03:00
..
Properties Add Dashboard samples: monolith + client/server 2020-12-27 11:53:52 +01:00
appsettings.Development.json Update Features with support for configuring middleware pipeline 2021-06-19 12:57:54 +02:00
appsettings.json Stop using arrays for Features in the appsettings 2021-07-06 10:23:17 +03:00
docker-compose.yaml Add Dashboard samples: monolith + client/server 2020-12-27 11:53:52 +01:00
Elsa.Samples.Server.Host.csproj MongoDB and Postgres persistence configuration 2021-06-30 18:18:59 +03:00
FodyWeavers.xml Add Dashboard samples: monolith + client/server 2020-12-27 11:53:52 +01:00
Program.cs Fix race condition with bookmark querying and updating 2021-05-21 21:39:16 +02:00
README.md Readme update 2021-07-02 21:31:39 +03:00
Startup.cs Stop using arrays for Features in the appsettings 2021-07-06 10:23:17 +03:00

Configure persistence in appsettings.json

EF Sqlite

"Elsa": {
"Features": [
    "Persistence:EntityFrameworkCore:Sqlite",
    ...
    ],
}

EF MySQL

"Elsa": {
"Features": [
    "Persistence:EntityFrameworkCore:MySql",
    ...
    ],
}

EF SQL Server

"Elsa": {
"Features": [
    "Persistence:EntityFrameworkCore:SqlServer",
    ...
    ],
}

EF Postgre

"Elsa": {
"Features": [
    "Persistence:EntityFrameworkCore:PostgreSql",
    ...
    ],
}

EF MongoDB

"Elsa": {
"Features": [
    "Persistence:MongoDb",
    ...
    ],
}

YesSql Sqlite

"Elsa": {
"Features": [
    "Persistence:YesSql:Sqlite",
    ...
    ],
}

YesSql MySQL

"Elsa": {
"Features": [
    "Persistence:YesSql:MySql",
    ...
    ],
}

YesSql SQL Server

"Elsa": {
"Features": [
    "Persistence:YesSql:SqlServer",
    ...
    ],
}

YesSql Postgre

"Elsa": {
"Features": [
    "Persistence:YesSql:PostgreSql",
    ...
    ],
}

Configure modular activity providers such as Webhooks

It is required to add modular activity provider and additional persistence feature for your modular activity provider. The persistence providers should match for Elsa Core and modular activity providers. Two examples below are given to set up Elsa Core and Webhooks persistence as follow.

EF Sqlite

"Elsa": {
"Features": [
    "Persistence:EntityFrameworkCore:Sqlite",
    "Webhooks"
    "Webhooks:Persistence:EntityFrameworkCore:Sqlite",
    ...
    ],
}

EF MongoDB

"Elsa": {
"Features": [
    "Persistence:MongoDb",
    "Webhooks"
    "Webhooks:Persistence:MongoDb",
    ...
    ],
}

Configure connection strings for each persistence

  "ConnectionStrings": {
    ...
    "MySql": "Server=LAPTOP-B76STK67;Database=Elsa;Uid=myUsername;Pwd=myPassword;",
    "SqlServer": "Server=LAPTOP-B76STK67;Database=Elsa;Integrated Security=true;MultipleActiveResultSets=True;Max Pool Size=500;Connection Timeout=3600",
    "Sqlite": "Data Source=elsa.sqlite.db;Cache=Shared;",
    "MongoDb": "mongodb://localhost:27017/Elsa",
    "PostgreSql": "Server=127.0.0.1;Port=5433;Database=elsa;User Id=postgres;Password=Password12!;"
  },

Connection strings

MySql https://www.connectionstrings.com/mysql/ SQL Server https://www.connectionstrings.com/sql-server/ Postgres https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING MongoDb https://docs.mongodb.com/manual/reference/connection-string/